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

public class Sequence<T>
extends java.lang.Object
implements OpSequence<T>
  • Method Summary

    Modifier and Type Method Description
    T apply​(long selector)  
    java.util.List<T> getOps()
    Get the list of individual operations which could be returned by LongFunction.apply(long).
    int[] getSequence()
    Get the integer sequence that is used to index into the operations.
    SequencerType getSequencerType()  
    java.lang.String toString()  
    <U> Sequence<U> transform​(java.util.function.Function<T,​U> func)
    Map this OpSequence to another type of OpSequence.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • apply

      public T apply​(long selector)
      Specified by:
      apply in interface java.util.function.LongFunction<T>
    • getOps

      public java.util.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​(java.util.function.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 java.lang.String toString()
      Overrides:
      toString in class java.lang.Object