Class ByteBufferSizedHashed
java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.from_long.to_bytebuffer.ByteBufferSizedHashed
- All Implemented Interfaces:
java.util.function.LongFunction<java.nio.ByteBuffer>
public class ByteBufferSizedHashed
extends java.lang.Object
implements java.util.function.LongFunction<java.nio.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 Constructor Description ByteBufferSizedHashed(int size)ByteBufferSizedHashed(java.lang.Object sizeFunc) -
Method Summary
Modifier and Type Method Description java.nio.ByteBufferapply(long input)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ByteBufferSizedHashed
public ByteBufferSizedHashed(int size) -
ByteBufferSizedHashed
public ByteBufferSizedHashed(java.lang.Object sizeFunc)
-
-
Method Details
-
apply
public java.nio.ByteBuffer apply(long input)- Specified by:
applyin interfacejava.util.function.LongFunction<java.nio.ByteBuffer>
-