All Implemented Interfaces:
Serializable, Cloneable, Iterator<Traverser.Admin<E>>, Step<S,E>, Barrier<Boolean>, MemoryComputing<Boolean>

public final class SideEffectCapStep<S,E> extends SupplyingBarrierStep<S,E>
Author:
Marko A. Rodriguez (http://markorodriguez.com)
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class AbstractStep<S,E>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class AbstractStep<S,E>
    • getSideEffectKeys

      public List<String> getSideEffectKeys()
    • getRequirements

      public Set<TraverserRequirement> getRequirements()
      Description copied from interface: Step
      Provide the necessary TraverserRequirement that must be met by the traverser in order for the step to function properly. The provided default implements returns an empty set.
      Returns:
      the set of requirements
    • getEmptyBarrier

      public Boolean 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.
    • supply

      protected E supply()
      Specified by:
      supply in class SupplyingBarrierStep<S,E>
    • clone

      public SideEffectCapStep<S,E> clone()
      Description copied from interface: Step
      Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication. When cloning a step, it is important that the steps, the cloned step is equivalent to the state of the step when Step.reset() is called. Moreover, the previous and next steps should be set to EmptyStep.
      Specified by:
      clone in interface Step<S,E>
      Overrides:
      clone in class SupplyingBarrierStep<S,E>
      Returns:
      The cloned step