Class CopyDocumentStep

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

public class CopyDocumentStep extends AbstractExecutionStep
Reads an upstream result set and returns a new result set that contains copies of the original OResult instances

This is mainly used from statements that need to copy of the original data to save it somewhere else, eg. INSERT ... FROM SELECT

Author:
Luigi Dell'Aquila (l.dellaquila-(at)-orientdb.com)
  • Constructor Details

    • CopyDocumentStep

      public CopyDocumentStep(OCommandContext ctx, boolean profilingEnabled)
  • 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