Class HashedByteBufferExtract

java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.from_long.to_bytebuffer.HashedByteBufferExtract
All Implemented Interfaces:
LongFunction<ByteBuffer>

public class HashedByteBufferExtract extends Object implements LongFunction<ByteBuffer>
Create a ByteBuffer from the first function, and then sample data from that bytebuffer according to the size function. The initFunction can be given as simply a size, in which case ByteBufferSizedHash is used. If the size function yields a size larger than the available buffer size, then it is lowered to that size automatically. If it is lower, then a random offset is used within the buffer image. This function behaves slightly differently than most in that it creates and caches as source byte buffer during initialization.