Class SetSizedHashed
java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.from_long.to_collection.SetSizedHashed
- All Implemented Interfaces:
LongFunction<Set<Object>>
Create a Set from a long input based on a set of provided functions.
As a 'Sized' function, the first argument is a function which determines the size of the resulting set.
Additional functions provided are used to generate the elements to add to the collection. If the size
is larger than the number of provided functions, the last provided function is used repeatedly as needed.
As a 'Hashed' function, the input value is hashed again before being used by each element function.
-
Constructor Summary
ConstructorsConstructorDescriptionSetSizedHashed(int size, Object... funcs) SetSizedHashed(Object sizeFunc, Object... funcs) -
Method Summary
-
Constructor Details
-
SetSizedHashed
-
SetSizedHashed
-
-
Method Details
-
apply
-