Package com.arcadedb.query.sql.executor
Class AbstractExecutionStep
- java.lang.Object
-
- com.arcadedb.query.sql.executor.AbstractExecutionStep
-
- All Implemented Interfaces:
ExecutionStep
,ExecutionStepInternal
- Direct Known Subclasses:
AbstractTraverseStep
,AbstractUnrollStep
,AccumulatingTimeoutStep
,BatchStep
,CartesianProductStep
,CastToStepAbstract
,CheckClusterTypeStep
,CheckIsEdgeTypeStep
,CheckIsVertexTypeStep
,CheckRecordImplementationStep
,CheckRecordTypeStep
,CheckSafeDeleteStep
,CheckTypeTypeStep
,ConvertToResultInternalStep
,ConvertToUpdatableResultStep
,CopyDocumentStep
,CopyRecordContentBeforeUpdateStep
,CountFromIndexStep
,CountFromTypeStep
,CountStep
,CreateEdgesStep
,CreateRecordStep
,DeleteFromIndexStep
,DeleteStep
,DistinctExecutionStep
,EmptyDataGeneratorStep
,EmptyStep
,ExpandStep
,FetchEdgesFromToVerticesStep
,FetchEdgesToVerticesStep
,FetchFromClusterExecutionStep
,FetchFromClustersExecutionStep
,FetchFromIndexedFunctionStep
,FetchFromIndexStep
,FetchFromResultsetStep
,FetchFromRidsStep
,FetchFromSchemaBucketsStep
,FetchFromSchemaDatabaseStep
,FetchFromSchemaIndexesStep
,FetchFromSchemaTypesStep
,FetchFromTypeExecutionStep
,FilterByClustersStep
,FilterByTypeStep
,FilterNotMatchPatternStep
,FilterStep
,ForEachStep
,GetValueFromIndexEntryStep
,GlobalLetExpressionStep
,GlobalLetQueryStep
,GuaranteeEmptyCountStep
,IfStep
,InsertValuesStep
,LetExpressionStep
,LetQueryStep
,LimitExecutionStep
,MatchFirstStep
,MatchPrefetchStep
,MatchStep
,MoveVertexStep
,OrderByStep
,ParallelExecStep
,ProjectionCalculationStep
,RemoveEdgePointersStep
,RemoveEmptyOptionalsStep
,RetryStep
,ReturnMatchPathsStep
,ReturnMatchPatternsStep
,ReturnStep
,SaveElementStep
,ScriptLineStep
,SetDocumentStepStep
,SkipExecutionStep
,SubQueryStep
,TimeoutStep
,UnwindStep
,UnwrapPreviousValueStep
,UpdateContentStep
,UpdateMergeStep
,UpdateRemoveStep
,UpdateSetStep
,UpsertStep
,WhileStep
public abstract class AbstractExecutionStep extends Object implements ExecutionStepInternal
- Author:
- Luigi Dell'Aquila (luigi.dellaquila-(at)-gmail.com)
-
-
Field Summary
Fields Modifier and Type Field Description protected CommandContext
context
protected long
cost
static int
DEFAULT_FETCH_RECORDS_PER_PULL
protected ExecutionStepInternal
prev
protected boolean
timedOut
-
Constructor Summary
Constructors Constructor Description AbstractExecutionStep(CommandContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ExecutionStepInternal
checkForPrevious()
protected ExecutionStepInternal
checkForPrevious(String exceptionMessage)
void
close()
CommandContext
getContext()
long
getCost()
returns the absolute cost (in nanoseconds) of the execution of this stepprotected String
getCostFormatted()
ExecutionStepInternal
getPrev()
boolean
isTimedOut()
protected void
pullPrevious(CommandContext context, int nRecords)
void
sendTimeout()
void
setPrevious(ExecutionStepInternal step)
-
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.ExecutionStep
toResult
-
Methods inherited from interface com.arcadedb.query.sql.executor.ExecutionStepInternal
canBeCached, copy, getDescription, getName, getSubExecutionPlans, getSubSteps, getType, prettyPrint, reset, syncPull
-
-
-
-
Field Detail
-
DEFAULT_FETCH_RECORDS_PER_PULL
public static final int DEFAULT_FETCH_RECORDS_PER_PULL
- See Also:
- Constant Field Values
-
context
protected final CommandContext context
-
prev
protected ExecutionStepInternal prev
-
timedOut
protected boolean timedOut
-
cost
protected long cost
-
-
Constructor Detail
-
AbstractExecutionStep
public AbstractExecutionStep(CommandContext context)
-
-
Method Detail
-
setPrevious
public void setPrevious(ExecutionStepInternal step)
- Specified by:
setPrevious
in interfaceExecutionStepInternal
-
getContext
public CommandContext getContext()
-
getPrev
public ExecutionStepInternal getPrev()
-
sendTimeout
public void sendTimeout()
- Specified by:
sendTimeout
in interfaceExecutionStepInternal
-
isTimedOut
public boolean isTimedOut()
- Specified by:
isTimedOut
in interfaceExecutionStepInternal
-
close
public void close()
- Specified by:
close
in interfaceExecutionStepInternal
-
getCost
public long getCost()
Description copied from interface:ExecutionStep
returns the absolute cost (in nanoseconds) of the execution of this step- Specified by:
getCost
in interfaceExecutionStep
- Returns:
- the absolute cost (in nanoseconds) of the execution of this step, -1 if not calculated
-
getCostFormatted
protected String getCostFormatted()
-
checkForPrevious
protected ExecutionStepInternal checkForPrevious()
-
checkForPrevious
protected ExecutionStepInternal checkForPrevious(String exceptionMessage)
-
pullPrevious
protected void pullPrevious(CommandContext context, int nRecords)
-
-