Class HashedToByteBuffer
java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.from_long.to_bytebuffer.HashedToByteBuffer
- All Implemented Interfaces:
java.util.function.LongFunction<java.nio.ByteBuffer>
public class HashedToByteBuffer
extends java.lang.Object
implements java.util.function.LongFunction<java.nio.ByteBuffer>
Hash a long input value into a byte buffer, at least length bytes long, but aligned on 8-byte
boundary;
-
Constructor Summary
Constructors Constructor Description HashedToByteBuffer(int lengthInBytes) -
Method Summary
Modifier and Type Method Description java.nio.ByteBufferapply(long input)
-
Constructor Details
-
HashedToByteBuffer
public HashedToByteBuffer(int lengthInBytes)
-
-
Method Details
-
apply
public java.nio.ByteBuffer apply(long input)- Specified by:
applyin interfacejava.util.function.LongFunction<java.nio.ByteBuffer>
-