Class CheckSafeDeleteStep

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

public class CheckSafeDeleteStep extends AbstractExecutionStep
Checks if a record can be safely deleted (throws OCommandExecutionException 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 OCommandExecutionException 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 (l.dellaquila-(at)-orientdb.com)
  • Constructor Details

    • CheckSafeDeleteStep

      public CheckSafeDeleteStep(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