Interface RangeGlobalStepContract<S>

    • Field Detail

      • CONCRETE_STEPS

        static final List<Class<? extends Step>> CONCRETE_STEPS
        Concrete implementations of this contract that can be referenced as TinkerPop implementations.
    • Method Detail

      • getLowRange

        Long getLowRange()
        Retrieves the lower bound of the range.
        Specified by:
        getLowRange in interface Ranging
        Returns:
        the value representing the lower bound of the range
      • getHighRange

        Long getHighRange()
        Retrieves the higher bound of the range.
        Specified by:
        getHighRange in interface Ranging
        Returns:
        the higher bound of the range as an object of type V
      • getLowRangeAsGValue

        default GValue<Long> getLowRangeAsGValue()
        getLowRange, retaining the GValue container and without pinning the variable. It is the caller's responsibility to ensure that this value is not used to alter the traversal in any way which is not generalizable to any parameter value.
        Returns:
        the lower bound for range().
      • getHighRangeAsGValue

        default GValue<Long> getHighRangeAsGValue()
        getHighRange, retaining the GValue container and without pinning the variable. It is the caller's responsibility to ensure that this value is not used to alter the traversal in any way which is not generalizable to any parameter value.
        Returns:
        the upper bound for range().
      • getEmptyBarrier

        default TraverserSet<S> getEmptyBarrier()
        Description copied from interface: Barrier
        If a barrier is unproductive then provide an empty object suitable to the implementation which can be used to represent that state. This is important for cases like by(out().order().fold()) where the order() might filter but the fold() means the traversal is productive.
        Specified by:
        getEmptyBarrier in interface Barrier<S>
      • hasNextBarrier

        default boolean hasNextBarrier()
        Description copied from interface: Barrier
        Whether or not the step has an accessible barrier.
        Specified by:
        hasNextBarrier in interface Barrier<S>
        Returns:
        whether a barrier exists or not
      • addBarrier

        default void addBarrier​(TraverserSet<S> barrier)
        Description copied from interface: Barrier
        Add a barrier to the step. This typically happens when multiple parallel barriers need to become one barrier at a single step.
        Specified by:
        addBarrier in interface Barrier<S>
        Parameters:
        barrier - the barrier to merge in