Class BytesRefBlockPool

java.lang.Object
org.apache.lucene.util.BytesRefBlockPool
All Implemented Interfaces:
Accountable

public class BytesRefBlockPool extends Object implements Accountable
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 ByteBlockPool.BYTE_BLOCK_SIZE-2 bytes.

NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
  • Constructor Details

    • BytesRefBlockPool

      public BytesRefBlockPool()
    • BytesRefBlockPool

      public BytesRefBlockPool(ByteBlockPool byteBlockPool)
  • Method Details