Class AbstractTraverseStep
java.lang.Object
com.orientechnologies.orient.core.sql.executor.AbstractExecutionStep
com.orientechnologies.orient.core.sql.executor.AbstractTraverseStep
- All Implemented Interfaces:
OExecutionStep,OExecutionStepInternal
- Direct Known Subclasses:
BreadthFirstTraverseStep,DepthFirstTraverseStep
Created by luigidellaquila on 26/10/16.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final OIntegerprotected final List<OTraverseProjectionItem> protected final OWhereClauseFields inherited from class com.orientechnologies.orient.core.sql.executor.AbstractExecutionStep
ctx, next, prev, profilingEnabled, timedOut -
Constructor Summary
ConstructorsConstructorDescriptionAbstractTraverseStep(List<OTraverseProjectionItem> projections, OWhereClause whileClause, OInteger maxDepth, OCommandContext ctx, boolean profilingEnabled) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidfetchNextEntryPoints(OCommandContext ctx, int nRecords) protected abstract voidfetchNextResults(OCommandContext ctx, int nRecords) longgetCost()returns the absolute cost (in nanoseconds) of the execution of this stepprotected booleansyncPull(OCommandContext ctx, int nRecords) toString()Methods inherited from class com.orientechnologies.orient.core.sql.executor.AbstractExecutionStep
close, getContext, getCostFormatted, getNext, getPrev, isProfilingEnabled, sendTimeout, setNext, setPrevious, setProfilingEnabledMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.orientechnologies.orient.core.sql.executor.OExecutionStep
toResultMethods inherited from interface com.orientechnologies.orient.core.sql.executor.OExecutionStepInternal
canBeCached, copy, deserialize, getDescription, getName, getSubExecutionPlans, getSubSteps, getTargetNode, getType, prettyPrint, reset, serialize
-
Field Details
-
whileClause
-
projections
-
maxDepth
-
entryPoints
-
results
-
traversed
-
-
Constructor Details
-
AbstractTraverseStep
public AbstractTraverseStep(List<OTraverseProjectionItem> projections, OWhereClause whileClause, OInteger maxDepth, OCommandContext ctx, boolean profilingEnabled)
-
-
Method Details
-
syncPull
- Throws:
OTimeoutException
-
fetchNextEntryPoints
-
fetchNextResults
-
isFinished
protected boolean isFinished() -
getCost
public long getCost()Description copied from interface:OExecutionStepreturns the absolute cost (in nanoseconds) of the execution of this step- Returns:
- the absolute cost (in nanoseconds) of the execution of this step, -1 if not calculated
-
toString
-