BytesRefBlockPool
Represents a logical list of ByteRef backed by a ByteBlockPool. It uses up to two bytes to record the length of the BytesRef followed by the actual bytes. They can be read using the start position returned when they are appended.
The BytesRef is written so it never crosses the ByteBlockPool.BYTE_BLOCK_SIZE boundary. The limit of the largest BytesRef is therefore -2 bytes.
Properties
Functions
Link copied to clipboard
Add a term returning the start position on the underlying ByteBlockPool. THis can be used to read back the value using .fillBytesRef.
Link copied to clipboard
Populates the given BytesRef with the term starting at start.
Link copied to clipboard
Return the memory usage of this object in bytes. Negative values are illegal.