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 ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canBeCached()
void
chain(ExecutionStepInternal nextStep)
void
close()
InternalExecutionPlan
copy(CommandContext ctx)
void
deserialize(Result serializedExecutionPlan)
ResultSet
fetchNext(int n)
if the execution can still return N elements, then the result will contain them all.long
getCost()
List<ExecutionStep>
getSteps()
String
prettyPrint(int depth, int indent)
void
reset(CommandContext ctx)
Result
serialize()
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
getStatement, setStatement
-
-
-
-
Field Detail
-
steps
protected List<ExecutionStepInternal> steps
-
-
Constructor Detail
-
SelectExecutionPlan
public SelectExecutionPlan(CommandContext ctx)
-
-
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 ctx)
- 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
-
getCost
public long getCost()
- Specified by:
getCost
in interfaceInternalExecutionPlan
-
serialize
public Result serialize()
- Specified by:
serialize
in interfaceInternalExecutionPlan
-
deserialize
public void deserialize(Result serializedExecutionPlan)
- Specified by:
deserialize
in interfaceInternalExecutionPlan
-
copy
public InternalExecutionPlan copy(CommandContext ctx)
- Specified by:
copy
in interfaceInternalExecutionPlan
-
canBeCached
public boolean canBeCached()
- Specified by:
canBeCached
in interfaceInternalExecutionPlan
-
-