Interface RandomAccessInput

All Known Implementing Classes:
BufferedIndexInput, ByteBufferIndexInput, ByteBuffersDataInput, ByteBuffersIndexInput

public interface RandomAccessInput
Random Access Index API. Unlike IndexInput, this has no concept of file position, all reads are absolute. However, like IndexInput, it is only intended for use by a single thread.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte
    readByte(long pos)
    Reads a byte at the given position in the file
    int
    readInt(long pos)
    Reads an integer (LE byte order) at the given position in the file
    long
    readLong(long pos)
    Reads a long (LE byte order) at the given position in the file
    short
    readShort(long pos)
    Reads a short (LE byte order) at the given position in the file