All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.vertexium.cypher.executionPlan.ExecutionPlan Maven / Gradle / Ivy

There is a newer version: 4.10.0
Show newest version
package org.vertexium.cypher.executionPlan;

import org.vertexium.cypher.VertexiumCypherQueryContext;
import org.vertexium.cypher.VertexiumCypherResult;

public class ExecutionPlan {
    private final ExecutionStep root;

    public ExecutionPlan(ExecutionStep root) {
        this.root = root;
    }

    public String toStringFull() {
        return root.toStringFull();
    }

    public VertexiumCypherResult execute(VertexiumCypherQueryContext ctx) {
        ctx.setCurrentlyExecutingPlan(this);
        return root.execute(ctx, null);
    }

    public ExecutionStep getRoot() {
        return root;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy