Package com.arcadedb.query.sql.executor
Class AbstractTraverseStep
- java.lang.Object
-
- com.arcadedb.query.sql.executor.AbstractExecutionStep
-
- com.arcadedb.query.sql.executor.AbstractTraverseStep
-
- All Implemented Interfaces:
ExecutionStep
,ExecutionStepInternal
- Direct Known Subclasses:
BreadthFirstTraverseStep
,DepthFirstTraverseStep
public abstract class AbstractTraverseStep extends AbstractExecutionStep
Created by luigidellaquila on 26/10/16.
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Result>
entryPoints
protected PInteger
maxDepth
protected List<TraverseProjectionItem>
projections
protected List<Result>
results
protected WhereClause
whileClause
-
Fields inherited from class com.arcadedb.query.sql.executor.AbstractExecutionStep
ctx, next, prev, profilingEnabled, timedOut
-
-
Constructor Summary
Constructors Constructor Description AbstractTraverseStep(List<TraverseProjectionItem> projections, WhereClause whileClause, PInteger maxDepth, CommandContext ctx, boolean profilingEnabled)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
fetchNextEntryPoints(CommandContext ctx, int nRecords)
protected abstract void
fetchNextResults(CommandContext ctx, int nRecords)
long
getCost()
returns the absolute cost (in nanoseconds) of the execution of this stepprotected boolean
isFinished()
ResultSet
syncPull(CommandContext ctx, int nRecords)
-
Methods inherited from class com.arcadedb.query.sql.executor.AbstractExecutionStep
close, getContext, getCostFormatted, getNext, getPrev, isProfilingEnabled, isTimedOut, sendTimeout, setNext, setPrevious, setProfilingEnabled
-
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, deserialize, getDescription, getName, getSubExecutionPlans, getSubSteps, getTargetNode, getType, prettyPrint, reset, serialize
-
-
-
-
Field Detail
-
whileClause
protected final WhereClause whileClause
-
projections
protected final List<TraverseProjectionItem> projections
-
maxDepth
protected final PInteger maxDepth
-
-
Constructor Detail
-
AbstractTraverseStep
public AbstractTraverseStep(List<TraverseProjectionItem> projections, WhereClause whileClause, PInteger maxDepth, CommandContext ctx, boolean profilingEnabled)
-
-
Method Detail
-
syncPull
public ResultSet syncPull(CommandContext ctx, int nRecords)
-
fetchNextEntryPoints
protected abstract void fetchNextEntryPoints(CommandContext ctx, int nRecords)
-
fetchNextResults
protected abstract void fetchNextResults(CommandContext ctx, int nRecords)
-
isFinished
protected boolean isFinished()
-
getCost
public long getCost()
Description copied from interface:ExecutionStep
returns 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
-
-