Class CheckIsEdgeTypeStep

  • All Implemented Interfaces:
    ExecutionStep, ExecutionStepInternal

    public class CheckIsEdgeTypeStep
    extends AbstractExecutionStep

    This step is used just as a gate check for classes (eg. for CREATE EDGE to make sure that the passed type is an edge type).

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

      • CheckIsEdgeTypeStep

        public CheckIsEdgeTypeStep​(String targetClass,
                                   CommandContext ctx,
                                   boolean profilingEnabled)
        Parameters:
        targetClass - a type to be checked
        ctx - execuiton context
        profilingEnabled - true to collect execution stats
    • 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