Class Sequence<T>

java.lang.Object
io.nosqlbench.engine.api.activityapi.planning.Sequence<T>
All Implemented Interfaces:
OpSequence<T>, LongFunction<T>

public class Sequence<T> extends Object implements OpSequence<T>
  • Method Details

    • apply

      public T apply(long selector)
      Specified by:
      apply in interface LongFunction<T>
    • getOps

      public List<T> getOps()
      Description copied from interface: OpSequence
      Get the list of individual operations which could be returned by LongFunction.apply(long).
      Specified by:
      getOps in interface OpSequence<T>
      Returns:
      A List of T
    • getSequence

      public int[] getSequence()
      Description copied from interface: OpSequence
      Get the integer sequence that is used to index into the operations.
      Specified by:
      getSequence in interface OpSequence<T>
      Returns:
      an offset pointer array in int[] form
    • getSequencerType

      public SequencerType getSequencerType()
    • transform

      public <U> Sequence<U> transform(Function<T,U> func)
      Description copied from interface: OpSequence
      Map this OpSequence to another type of OpSequence.
      Specified by:
      transform in interface OpSequence<T>
      Type Parameters:
      U - The target type of the transformation.
      Parameters:
      func - The transformation function from this to another type
      Returns:
      A new OpSequence of type U
    • toString

      public String toString()
      Overrides:
      toString in class Object