Package com.arcadedb.query.sql.executor
Class SelectExecutionPlan
- java.lang.Object
-
- com.arcadedb.query.sql.executor.SelectExecutionPlan
-
- All Implemented Interfaces:
ExecutionPlan
,InternalExecutionPlan
,Serializable
- Direct Known Subclasses:
InsertExecutionPlan
,UpdateExecutionPlan
public class SelectExecutionPlan extends Object implements InternalExecutionPlan
Created by luigidellaquila on 06/07/16.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<ExecutionStepInternal>
steps
-
Fields inherited from interface com.arcadedb.query.sql.executor.InternalExecutionPlan
JAVA_TYPE
-
-
Constructor Summary
Constructors Constructor Description SelectExecutionPlan(CommandContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canBeCached()
void
chain(ExecutionStepInternal nextStep)
void
close()
InternalExecutionPlan
copy(CommandContext context)
ResultSet
fetchNext(int n)
if the execution can still return N elements, then the result will contain them all.List<ExecutionStep>
getSteps()
String
prettyPrint(int depth, int indent)
void
reset(CommandContext context)
void
setSteps(List<ExecutionStepInternal> steps)
Result
toResult()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.arcadedb.query.sql.executor.InternalExecutionPlan
getCost, getStatement, setStatements
-
-
-
-
Field Detail
-
steps
protected List<ExecutionStepInternal> steps
-
-
Constructor Detail
-
SelectExecutionPlan
public SelectExecutionPlan(CommandContext context)
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfaceInternalExecutionPlan
-
fetchNext
public ResultSet fetchNext(int n)
Description copied from interface:InternalExecutionPlan
if the execution can still return N elements, then the result will contain them all. If the execution contains less than N elements, then the result will contain them all, next result(s) will contain zero elements- Specified by:
fetchNext
in interfaceInternalExecutionPlan
- Returns:
-
prettyPrint
public String prettyPrint(int depth, int indent)
- Specified by:
prettyPrint
in interfaceExecutionPlan
-
reset
public void reset(CommandContext context)
- Specified by:
reset
in interfaceInternalExecutionPlan
-
chain
public void chain(ExecutionStepInternal nextStep)
-
getSteps
public List<ExecutionStep> getSteps()
- Specified by:
getSteps
in interfaceExecutionPlan
-
setSteps
public void setSteps(List<ExecutionStepInternal> steps)
-
toResult
public Result toResult()
- Specified by:
toResult
in interfaceExecutionPlan
-
copy
public InternalExecutionPlan copy(CommandContext context)
- Specified by:
copy
in interfaceInternalExecutionPlan
-
canBeCached
public boolean canBeCached()
- Specified by:
canBeCached
in interfaceInternalExecutionPlan
-
-