Class ExecutionPlanInterpreter
-
- All Implemented Interfaces:
public final class ExecutionPlanInterpreterMain interpreter for the matching plan AST
-
-
Field Summary
Fields Modifier and Type Field Description private final PlanMatchingContextcontext
-
Constructor Summary
Constructors Constructor Description ExecutionPlanInterpreter(PlanMatchingContext context)
-
Method Summary
Modifier and Type Method Description final PlanMatchingContextgetContext()Context to use to execute the plan final ExecutionPlanNodewalkTree(List<String> path, ExecutionPlanNode node, ValueResolver valueResolver)Walks the tree from a given node, executing all visited nodes final UnitpushResult(NodeResult value)Push a result value onto the value stack final UnitupdateResult(NodeResult value)Replace the top value of the stack with the new value final NodeResultpopResult()Return the value on the top if the stack final <Error class: unknown class>stackValue()Return the current stack value final Result<NodeValue, String>resolveStackValue(DocPath path)-
-
Constructor Detail
-
ExecutionPlanInterpreter
ExecutionPlanInterpreter(PlanMatchingContext context)
-
-
Method Detail
-
getContext
final PlanMatchingContext getContext()
Context to use to execute the plan
-
walkTree
final ExecutionPlanNode walkTree(List<String> path, ExecutionPlanNode node, ValueResolver valueResolver)
Walks the tree from a given node, executing all visited nodes
-
pushResult
final Unit pushResult(NodeResult value)
Push a result value onto the value stack
-
updateResult
final Unit updateResult(NodeResult value)
Replace the top value of the stack with the new value
-
popResult
final NodeResult popResult()
Return the value on the top if the stack
-
stackValue
final <Error class: unknown class> stackValue()
Return the current stack value
-
resolveStackValue
final Result<NodeValue, String> resolveStackValue(DocPath path)
-
-
-
-