Class Sequence<T>
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 Tapply(long selector)java.util.List<T>getOps()Get the list of individual operations which could be returned byLongFunction.apply(long).int[]getSequence()Get the integer sequence that is used to index into the operations.SequencerTypegetSequencerType()java.lang.StringtoString()<U> Sequence<U>transform(java.util.function.Function<T,U> func)Map this OpSequence to another type of OpSequence.
-
Method Details
-
apply
- Specified by:
applyin interfacejava.util.function.LongFunction<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
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-