ByteBuffersDataOutput
A DataOutput storing data in a list of ByteBuffers.
Constructors
Create a new output, suitable for writing a file of around expectedSize bytes.
Types
An implementation of a ByteBuffer allocation and recycling policy. The blocks are recycled if exactly the same size is requested, otherwise they're released to be GCed.
Properties
Functions
Copy the current content of this object into another DataOutput.
Return the memory usage of this object in bytes. Negative values are illegal.
Return a contiguous array with the current content written to the output. The returned array is always a copy (can be mutated).
Return a list of read-only view of ByteBuffer blocks over the current content written to the output.
Return a ByteBuffersDataInput for the set of current buffers (.toBufferList).
Returns a list of writeable blocks over the (source) content buffers.
Writes an array of bytes.
Encode integers using group-varint. It uses VInt to encode tail values that are not enough for a group.
Encode integers using group-varint. It uses VInt to encode tail values that are not enough for a group. we need a long[] because this is what postings are using, all longs are actually required to be integers.
Writes a String map.
Writes a String set.
Writes a short as two bytes (LE byte order).
Writes a string.
Writes an long in a variable-length format. Writes between one and nine bytes. Smaller values take fewer bytes. Negative numbers are not supported.
Write a zig-zag-encoded .writeVLong long. Writes between one and ten bytes. This is typically useful to write small signed ints.