Class ByteBuffersDataInput

java.lang.Object
org.apache.lucene.store.DataInput
org.apache.lucene.store.ByteBuffersDataInput
All Implemented Interfaces:
Cloneable, RandomAccessInput, Accountable

public final class ByteBuffersDataInput extends DataInput implements Accountable, RandomAccessInput
A DataInput implementing RandomAccessInput and reading data from a list of ByteBuffers.
  • Field Details

    • blocks

      private final ByteBuffer[] blocks
    • blockBits

      private final int blockBits
    • blockMask

      private final int blockMask
    • size

      private final long size
    • offset

      private final long offset
    • pos

      private long pos
  • Constructor Details

    • ByteBuffersDataInput

      public ByteBuffersDataInput(List<ByteBuffer> buffers)
      Read data from a set of contiguous buffers. All data buffers except for the last one must have an identical remaining number of bytes in the buffer (that is a power of two). The last buffer can be of an arbitrary remaining length.
  • Method Details