java.lang.Object
com.orientechnologies.orient.core.sql.executor.AbstractExecutionStep
com.orientechnologies.orient.core.sql.executor.CountStep
All Implemented Interfaces:
OExecutionStep, OExecutionStepInternal

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 (l.dellaquila-(at)-orientdb.com)
  • Constructor Details

    • CountStep

      public CountStep(OCommandContext ctx, boolean profilingEnabled)
      Parameters:
      ctx - the query context
      profilingEnabled - true to enable the profiling of the execution (for SQL PROFILE)
  • Method Details

    • syncPull

      public OResultSet syncPull(OCommandContext ctx, int nRecords) throws OTimeoutException
      Throws:
      OTimeoutException
    • prettyPrint

      public String prettyPrint(int depth, int indent)
    • getCost

      public long getCost()
      Description copied from interface: OExecutionStep
      returns the absolute cost (in nanoseconds) of the execution of this step
      Returns:
      the absolute cost (in nanoseconds) of the execution of this step, -1 if not calculated
    • canBeCached

      public boolean canBeCached()
    • copy

      public OExecutionStep copy(OCommandContext ctx)