Class CharBufferExtract
java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.from_long.to_charbuffer.CharBufferExtract
- All Implemented Interfaces:
LongFunction<CharBuffer>
Create a CharBuffer from the first function, and then sample data from
that buffer according to the size function. The initFunction can be
given as simply a size, in which case ByteBufferSizedHash is used with Hex String
conversion.
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.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CharBufferExtract
-
-
Method Details
-
apply
- Specified by:
applyin interfaceLongFunction<CharBuffer>
-