Class CheckSafeDeleteStep

  • All Implemented Interfaces:
    ExecutionStep, ExecutionStepInternal

    public class CheckSafeDeleteStep
    extends AbstractExecutionStep

    Checks if a record can be safely deleted (throws PCommandExecutionException in case). A record cannot be safely deleted if it's a vertex or an edge (it requires additional operations).

    The result set returned by syncPull() throws an PCommandExecutionException as soon as it finds a record that cannot be safely deleted (eg. a vertex or an edge)

    This step is used used in DELETE statement to make sure that you are not deleting vertices or edges without passing for an explicit DELETE VERTEX/EDGE

    Author:
    Luigi Dell'Aquila (luigi.dellaquila-(at)-gmail.com)
    • Constructor Detail

      • CheckSafeDeleteStep

        public CheckSafeDeleteStep​(CommandContext ctx,
                                   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