Package com.arcadedb.query.sql.executor
Class CountStep
- java.lang.Object
-
- com.arcadedb.query.sql.executor.AbstractExecutionStep
-
- com.arcadedb.query.sql.executor.CountStep
-
- All Implemented Interfaces:
ExecutionStep
,ExecutionStepInternal
public class CountStep extends AbstractExecutionStep
Counts the records from the previous steps. Returns a record with a single property, called "count" containing the count of records received from pervious steps- Author:
- Luigi Dell'Aquila (luigi.dellaquila-(at)-gmail.com)
-
-
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 CountStep(CommandContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutionStep
copy(CommandContext context)
String
prettyPrint(int depth, int indent)
ResultSet
syncPull(CommandContext context, int nRecords)
-
Methods inherited from class com.arcadedb.query.sql.executor.AbstractExecutionStep
checkForPrevious, checkForPrevious, close, getContext, getCost, getCostFormatted, getPrev, isTimedOut, pullPrevious, sendTimeout, 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, getDescription, getName, getSubExecutionPlans, getSubSteps, getType, reset
-
-
-
-
Constructor Detail
-
CountStep
public CountStep(CommandContext context)
- Parameters:
context
- the query contextprofilingEnabled
- true to enable the profiling of the execution (for SQL PROFILE)
-
-
Method Detail
-
syncPull
public ResultSet syncPull(CommandContext context, int nRecords) throws TimeoutException
- Throws:
TimeoutException
-
prettyPrint
public String prettyPrint(int depth, int indent)
-
copy
public ExecutionStep copy(CommandContext context)
-
-