Package com.arcadedb.query.sql.executor
Class DDLExecutionPlan
- java.lang.Object
-
- com.arcadedb.query.sql.executor.DDLExecutionPlan
-
- All Implemented Interfaces:
ExecutionPlan
,InternalExecutionPlan
,Serializable
public class DDLExecutionPlan extends Object implements InternalExecutionPlan
- Author:
- Luigi Dell'Aquila (luigi.dellaquila-(at)-gmail.com)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.arcadedb.query.sql.executor.InternalExecutionPlan
JAVA_TYPE
-
-
Constructor Summary
Constructors Constructor Description DDLExecutionPlan(CommandContext ctx, DDLStatement stm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canBeCached()
void
close()
ResultSet
executeInternal(BasicCommandContext ctx)
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
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
copy, deserialize, getStatement, serialize, setStatement
-
-
-
-
Constructor Detail
-
DDLExecutionPlan
public DDLExecutionPlan(CommandContext ctx, DDLStatement stm)
-
-
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:
-
reset
public void reset(CommandContext ctx)
- Specified by:
reset
in interfaceInternalExecutionPlan
-
getCost
public long getCost()
- Specified by:
getCost
in interfaceInternalExecutionPlan
-
canBeCached
public boolean canBeCached()
- Specified by:
canBeCached
in interfaceInternalExecutionPlan
-
executeInternal
public ResultSet executeInternal(BasicCommandContext ctx) 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
-
-