Class CopyDocumentStep

  • All Implemented Interfaces:
    ExecutionStep, ExecutionStepInternal

    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 (luigi.dellaquila-(at)-gmail.com)
    • Constructor Detail

      • CopyDocumentStep

        public CopyDocumentStep​(CommandContext ctx,
                                String targetType,
                                boolean profilingEnabled)
    • Method Detail

      • prettyPrint

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

        public long getCost()
        Description copied from interface: ExecutionStep
        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