Class Sequence<T>
java.lang.Object
io.nosqlbench.engine.api.activityapi.planning.Sequence<T>
- All Implemented Interfaces:
OpSequence<T>,LongFunction<T>
-
Method Summary
Modifier and TypeMethodDescriptionapply(long selector) getOps()Get the list of individual operations which could be returned byLongFunction.apply(long).int[]Get the integer sequence that is used to index into the operations.toString()<U> Sequence<U> Map this OpSequence to another type of OpSequence.
-
Method Details
-
apply
- Specified by:
applyin interfaceLongFunction<T>
-
getOps
Description copied from interface:OpSequenceGet the list of individual operations which could be returned byLongFunction.apply(long).- Specified by:
getOpsin interfaceOpSequence<T>- Returns:
- A
Listof T
-
getSequence
public int[] getSequence()Description copied from interface:OpSequenceGet the integer sequence that is used to index into the operations.- Specified by:
getSequencein interfaceOpSequence<T>- Returns:
- an offset pointer array in int[] form
-
getSequencerType
-
transform
Description copied from interface:OpSequenceMap this OpSequence to another type of OpSequence.- Specified by:
transformin interfaceOpSequence<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
-