Package com.arcadedb.query.sql.executor
Class FetchFromClustersExecutionStep
- java.lang.Object
-
- com.arcadedb.query.sql.executor.AbstractExecutionStep
-
- com.arcadedb.query.sql.executor.FetchFromClustersExecutionStep
-
- All Implemented Interfaces:
ExecutionStep
,ExecutionStepInternal
public class FetchFromClustersExecutionStep extends AbstractExecutionStep
Created by luigidellaquila on 21/07/16.
-
-
Field Summary
-
Fields inherited from class com.arcadedb.query.sql.executor.AbstractExecutionStep
context, cost, DEFAULT_FETCH_RECORDS_PER_PULL, prev, timedOut
-
-
Constructor Summary
Constructors Constructor Description FetchFromClustersExecutionStep(int[] bucketIds, CommandContext context, Boolean ridOrder)
iterates over a class and its subTypes
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
long
getCost()
returns the absolute cost (in nanoseconds) of the execution of this stepList<ExecutionStep>
getSubSteps()
String
prettyPrint(int depth, int indent)
void
sendTimeout()
ResultSet
syncPull(CommandContext context, int nRecords)
-
Methods inherited from class com.arcadedb.query.sql.executor.AbstractExecutionStep
checkForPrevious, checkForPrevious, getContext, getCostFormatted, getPrev, isTimedOut, pullPrevious, setPrevious
-
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, getType, reset
-
-
-
-
Constructor Detail
-
FetchFromClustersExecutionStep
public FetchFromClustersExecutionStep(int[] bucketIds, CommandContext context, Boolean ridOrder)
iterates over a class and its subTypes- Parameters:
bucketIds
- the clusterscontext
- the query contextridOrder
- true to sort by RID asc, false to sort by RID desc, null for no sort.
-
-
Method Detail
-
syncPull
public ResultSet syncPull(CommandContext context, int nRecords) throws TimeoutException
- Throws:
TimeoutException
-
sendTimeout
public void sendTimeout()
- Specified by:
sendTimeout
in interfaceExecutionStepInternal
- Overrides:
sendTimeout
in classAbstractExecutionStep
-
close
public void close()
- Specified by:
close
in interfaceExecutionStepInternal
- Overrides:
close
in classAbstractExecutionStep
-
prettyPrint
public String prettyPrint(int depth, int indent)
-
getSubSteps
public List<ExecutionStep> getSubSteps()
-
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
- Overrides:
getCost
in classAbstractExecutionStep
- Returns:
- the absolute cost (in nanoseconds) of the execution of this step, -1 if not calculated
-
-