Class ByteBufferSizedHashed

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

public class ByteBufferSizedHashed extends Object implements 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 Details

    • ByteBufferSizedHashed

      public ByteBufferSizedHashed(int size)
    • ByteBufferSizedHashed

      public ByteBufferSizedHashed(Object sizeFunc)
  • Method Details