Class ByteBufferIndexInput

All Implemented Interfaces:
Closeable, AutoCloseable, Cloneable, RandomAccessInput
Direct Known Subclasses:
ByteBufferIndexInput.MultiBufferImpl, ByteBufferIndexInput.SingleBufferImpl

@Deprecated public abstract class ByteBufferIndexInput extends IndexInput implements RandomAccessInput
Deprecated.
This class was made public for internal reasons (instanceof checks). In MMapDirectory it was replaced by MemorySegment based IndexInput implementations and will be no longer required in Lucene 10.
Base IndexInput implementation that uses an array of ByteBuffers to represent a file.

Because Java's ByteBuffer uses an int to address the values, it's necessary to access a file greater Integer.MAX_VALUE in size using multiple byte buffers.

For efficiency, this class requires that the buffers are a power-of-two (chunkSizePower ).