Class CountFromClassStep
java.lang.Object
com.orientechnologies.orient.core.sql.executor.AbstractExecutionStep
com.orientechnologies.orient.core.sql.executor.CountFromClassStep
- All Implemented Interfaces:
OExecutionStepInternal
Returns the number of records contained in a class (including subclasses) 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.orientechnologies.orient.core.sql.executor.AbstractExecutionStep
prev -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.orientechnologies.orient.core.sql.executor.AbstractExecutionStep
getPrev, setPrevious, startMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.orientechnologies.orient.core.sql.executor.OExecutionStepInternal
copy, deserialize, getName, getSubExecutionPlans, getSubSteps, getTargetNode, getType, serialize, serializeToResult, toResult, toResult
-
Constructor Details
-
CountFromClassStep
- Parameters:
targetClass- An identifier containing the name of the class to countalias- the name of the property returned in the result-set
-
-
Method Details
-
internalStart
- Specified by:
internalStartin classAbstractExecutionStep- Throws:
OTimeoutException
-
prettyPrint
-
canBeCached
public boolean canBeCached()
-