Class B_O_Traverser<T>

    • Field Detail

      • bulk

        protected long bulk
      • future

        protected String future
    • Constructor Detail

      • B_O_Traverser

        protected B_O_Traverser()
      • B_O_Traverser

        public B_O_Traverser​(T t,
                             long initialBulk)
    • Method Detail

      • bulk

        public long bulk()
        Description copied from interface: Traverser
        A traverser may represent a grouping of traversers to allow for more efficient data propagation.
        Specified by:
        bulk in interface Traverser<T>
        Overrides:
        bulk in class AbstractTraverser<T>
        Returns:
        the number of traversers represented in this traverser.
      • merge

        public void merge​(Traverser.Admin<?> other)
        Description copied from interface: Traverser.Admin
        When two traversers are have equality with each other, then they can be merged. This method is used to merge the traversers into a single traverser. This is used for optimization where instead of enumerating all traversers, they can be counted.
        Specified by:
        merge in interface Traverser.Admin<T>
        Overrides:
        merge in class O_Traverser<T>
        Parameters:
        other - the other traverser to merge into this traverser. Once merged, the other can be garbage collected.
      • getStepId

        public String getStepId()
        Description copied from interface: Traverser.Admin
        Get the step id of where the traverser is located. This is typically used in multi-machine systems that require the movement of traversers between different traversal instances.
        Specified by:
        getStepId in interface Traverser.Admin<T>
        Overrides:
        getStepId in class AbstractTraverser<T>
        Returns:
        The future step for the traverser
      • equals

        protected final boolean equals​(B_O_Traverser other)