Package com.arcadedb.query.sql.executor
Class CountFromTypeStep
- java.lang.Object
-
- com.arcadedb.query.sql.executor.AbstractExecutionStep
-
- com.arcadedb.query.sql.executor.CountFromTypeStep
-
- All Implemented Interfaces:
ExecutionStep
,ExecutionStepInternal
public class CountFromTypeStep extends AbstractExecutionStep
Returns the number of records contained in a class (including subTypes) Executes a count(*) on a class and returns a single record that contains that value (with a specific alias).- 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, profilingEnabled, timedOut
-
-
Constructor Summary
Constructors Constructor Description CountFromTypeStep(String targetClass, String alias, CommandContext context, 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 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, copy, getDescription, getName, getSubExecutionPlans, getSubSteps, getType
-
-
-
-
Constructor Detail
-
CountFromTypeStep
public CountFromTypeStep(String targetClass, String alias, CommandContext context, boolean profilingEnabled)
- Parameters:
targetClass
- An identifier containing the name of the class to countalias
- the name of the property returned in the result-setcontext
- 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
-
reset
public void reset()
-
prettyPrint
public String prettyPrint(int depth, int indent)
-
-