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, wait
copy, deserialize, serialize
protected List<ScriptLineStep> steps
public OScriptExecutionPlan(OCommandContext ctx)
public void reset(OCommandContext ctx)
reset
in interface OInternalExecutionPlan
public void close()
close
in interface OInternalExecutionPlan
public OResultSet fetchNext(int n)
OInternalExecutionPlan
fetchNext
in interface OInternalExecutionPlan
public String prettyPrint(int depth, int indent)
prettyPrint
in interface OExecutionPlan
public void chain(OInternalExecutionPlan nextPlan, boolean profilingEnabled)
public List<OExecutionStep> getSteps()
getSteps
in interface OExecutionPlan
public void setSteps(List<OExecutionStepInternal> steps)
public OResult toResult()
toResult
in interface OExecutionPlan
public long getCost()
getCost
in interface OInternalExecutionPlan
public boolean canBeCached()
canBeCached
in interface OInternalExecutionPlan
public boolean containsReturn()
public OExecutionStepInternal executeUntilReturn()
public OExecutionStepInternal executeFull()
public String getStatement()
getStatement
in interface OInternalExecutionPlan
public void setStatement(String statement)
setStatement
in interface OInternalExecutionPlan
Copyright © 2009–2020 OrientDB. All rights reserved.