Class MapSized
java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.from_long.to_collection.MapSized
- All Implemented Interfaces:
LongFunction<Map<Object,Object>>
Create a Map from a long input based on a set of provided key and value functions.
Any duplicate entries produced by the key functions are elided.
As a 'Sized' function, the first argument is a function which determines the size of the resulting map.
Additional functions provided are used to generate the elements to add to the collection, as in the pair-wise
mode of
MapFunctions. If the size is larger than the number of provided functions, the last provided
function is used repeatedly as needed. (respectively for key functions as well as value functions)
As neither a 'Stepped' nor a 'Hashed' function, the input value used by each key and value function is the same
as that provided to the outer function.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MapSized
-
MapSized
-
-
Method Details
-
apply
-