Class ByteBufferSizedHashed
java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.from_long.to_bytebuffer.ByteBufferSizedHashed
- All Implemented Interfaces:
LongFunction<ByteBuffer>
Create a ByteBuffer from a long input based on a provided size function.
As a 'Sized' function, the first argument is a function which determines the size of the resulting ByteBuffer.
As a 'Hashed' function, the input value is hashed again before being used as value.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ByteBufferSizedHashed
public ByteBufferSizedHashed(int size) -
ByteBufferSizedHashed
-
-
Method Details
-
apply
- Specified by:
applyin interfaceLongFunction<ByteBuffer>
-