Package com.arcadedb.query.sql.executor
Class CountFromIndexStep
- java.lang.Object
-
- com.arcadedb.query.sql.executor.AbstractExecutionStep
-
- com.arcadedb.query.sql.executor.CountFromIndexStep
-
- All Implemented Interfaces:
ExecutionStep
,ExecutionStepInternal
public class CountFromIndexStep extends AbstractExecutionStep
Returns the number of records contained in an index- Author:
- Luigi Dell'Aquila (luigi.dellaquila - at - gmail.com)
-
-
Field Summary
-
Fields inherited from class com.arcadedb.query.sql.executor.AbstractExecutionStep
ctx, next, prev, profilingEnabled, timedOut
-
-
Constructor Summary
Constructors Constructor Description CountFromIndexStep(IndexIdentifier targetIndex, String alias, CommandContext ctx, boolean profilingEnabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
prettyPrint(int depth, int indent)
void
reset()
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
getCost, toResult
-
Methods inherited from interface com.arcadedb.query.sql.executor.ExecutionStepInternal
canBeCached, copy, deserialize, getDescription, getName, getSubExecutionPlans, getSubSteps, getTargetNode, getType, serialize
-
-
-
-
Constructor Detail
-
CountFromIndexStep
public CountFromIndexStep(IndexIdentifier targetIndex, String alias, CommandContext ctx, boolean profilingEnabled)
- Parameters:
targetIndex
- the index name as it is parsed by the SQL parsedalias
- the name of the property returned in the result-setctx
- the query contextprofilingEnabled
- true to enable the profiling of the execution (for SQL PROFILE)
-
-
Method Detail
-
syncPull
public ResultSet syncPull(CommandContext ctx, int nRecords) throws TimeoutException
- Throws:
TimeoutException
-
reset
public void reset()
-
prettyPrint
public String prettyPrint(int depth, int indent)
-
-