Class PagedBytes

  • All Implemented Interfaces:

    public final class PagedBytes
    extends Object
    implements Accountable
    Represents a logical byte[] as a series of pages. You can write-once into the logical byte[] (append only), using copy, and then retrieve slices (BytesRef) into it using fill.
    • Constructor Detail

      • PagedBytes

        public PagedBytes(int blockBits)
        1<<blockBits must be bigger than biggest single BytesRef slice that will be pulled