Package com.arcadedb.query.sql.executor
Class SingleOpExecutionPlan
- java.lang.Object
-
- com.arcadedb.query.sql.executor.SingleOpExecutionPlan
-
- All Implemented Interfaces:
ExecutionPlan
,InternalExecutionPlan
,Serializable
public class SingleOpExecutionPlan extends Object implements InternalExecutionPlan
- Author:
- Luigi Dell'Aquila (luigi.dellaquila-(at)-gmail.com)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected SimpleExecStatement
statement
-
Fields inherited from interface com.arcadedb.query.sql.executor.InternalExecutionPlan
JAVA_TYPE
-
-
Constructor Summary
Constructors Constructor Description SingleOpExecutionPlan(CommandContext context, SimpleExecStatement stm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canBeCached()
ResultSet
executeInternal()
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)
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
close, copy, getCost, getStatement, setStatements
-
-
-
-
Field Detail
-
statement
protected final SimpleExecStatement statement
-
-
Constructor Detail
-
SingleOpExecutionPlan
public SingleOpExecutionPlan(CommandContext context, SimpleExecStatement stm)
-
-
Method Detail
-
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:
-
reset
public void reset(CommandContext context)
- Specified by:
reset
in interfaceInternalExecutionPlan
-
canBeCached
public boolean canBeCached()
- Specified by:
canBeCached
in interfaceInternalExecutionPlan
-
executeInternal
public ResultSet executeInternal() throws CommandExecutionException
- Throws:
CommandExecutionException
-
getSteps
public List<ExecutionStep> getSteps()
- Specified by:
getSteps
in interfaceExecutionPlan
-
prettyPrint
public String prettyPrint(int depth, int indent)
- Specified by:
prettyPrint
in interfaceExecutionPlan
-
toResult
public Result toResult()
- Specified by:
toResult
in interfaceExecutionPlan
-
-