Package org.apache.lucene.store
Interface RandomAccessInput
-
- All Known Implementing Classes:
BufferedIndexInput,BufferedIndexInput.SlicedIndexInput,ByteBufferIndexInput,ByteBufferIndexInput.MultiBufferImpl,ByteBufferIndexInput.SingleBufferImpl,ByteBuffersDataInput,ByteBuffersIndexInput,NIOFSDirectory.NIOFSIndexInput,RAFDirectory.RAFIndexInput,SimpleFSDirectory.SimpleFSIndexInput,WindowsDirectory.WindowsIndexInput
public interface RandomAccessInputRandom Access Index API. UnlikeIndexInput, 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description bytereadByte(long pos)Reads a byte at the given position in the fileintreadInt(long pos)Reads an integer at the given position in the filelongreadLong(long pos)Reads a long at the given position in the fileshortreadShort(long pos)Reads a short at the given position in the file
-
-
-
Method Detail
-
readByte
byte readByte(long pos) throws java.io.IOExceptionReads a byte at the given position in the file- Throws:
java.io.IOException- See Also:
DataInput.readByte()
-
readShort
short readShort(long pos) throws java.io.IOExceptionReads a short at the given position in the file- Throws:
java.io.IOException- See Also:
DataInput.readShort()
-
readInt
int readInt(long pos) throws java.io.IOExceptionReads an integer at the given position in the file- Throws:
java.io.IOException- See Also:
DataInput.readInt()
-
readLong
long readLong(long pos) throws java.io.IOExceptionReads a long at the given position in the file- Throws:
java.io.IOException- See Also:
DataInput.readLong()
-
-