
public class OScriptExecutionPlan extends Object implements OInternalExecutionPlan
| Modifier and Type | Field and Description |
|---|---|
protected List<ScriptLineStep> |
steps |
JAVA_TYPE| Constructor and Description |
|---|
OScriptExecutionPlan(OCommandContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeCached() |
void |
chain(OInternalExecutionPlan nextPlan,
boolean profilingEnabled) |
void |
close() |
boolean |
containsReturn() |
OExecutionStepInternal |
executeFull()
executes the whole script and returns last statement ONLY if it's a RETURN, otherwise it
returns null;
|
OExecutionStepInternal |
executeUntilReturn()
executes all the script and returns last statement execution step, so that it can be executed
from outside
|
OResultSet |
fetchNext(int n)
if the execution can still return N elements, then the result will contain them all.
|
long |
getCost() |
String |
getStatement() |
List<OExecutionStep> |
getSteps() |
String |
prettyPrint(int depth,
int indent) |
void |
reset(OCommandContext ctx) |
void |
setStatement(String statement) |
void |
setSteps(List<OExecutionStepInternal> steps) |
OResult |
toResult() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcopy, deserialize, serializeprotected List<ScriptLineStep> steps
public OScriptExecutionPlan(OCommandContext ctx)
public void reset(OCommandContext ctx)
reset in interface OInternalExecutionPlanpublic void close()
close in interface OInternalExecutionPlanpublic OResultSet fetchNext(int n)
OInternalExecutionPlanfetchNext in interface OInternalExecutionPlanpublic String prettyPrint(int depth, int indent)
prettyPrint in interface OExecutionPlanpublic void chain(OInternalExecutionPlan nextPlan, boolean profilingEnabled)
public List<OExecutionStep> getSteps()
getSteps in interface OExecutionPlanpublic void setSteps(List<OExecutionStepInternal> steps)
public OResult toResult()
toResult in interface OExecutionPlanpublic long getCost()
getCost in interface OInternalExecutionPlanpublic boolean canBeCached()
canBeCached in interface OInternalExecutionPlanpublic boolean containsReturn()
public OExecutionStepInternal executeUntilReturn()
public OExecutionStepInternal executeFull()
public String getStatement()
getStatement in interface OInternalExecutionPlanpublic void setStatement(String statement)
setStatement in interface OInternalExecutionPlanCopyright © 2009–2025 OrientDB. All rights reserved.