Class RandomAccessReaderAdapter
java.lang.Object
java.io.InputStream
org.apache.cassandra.io.util.DataInputPlus.DataInputStreamPlus
org.apache.cassandra.io.util.RebufferingInputStream
org.apache.cassandra.io.util.RandomAccessReader
org.apache.cassandra.index.sai.disk.v1.vector.RandomAccessReaderAdapter
- All Implemented Interfaces:
io.github.jbellis.jvector.disk.RandomAccessReader,Closeable,DataInput,AutoCloseable,DataInputPlus,FileDataInput,RewindableDataInput
public class RandomAccessReaderAdapter
extends RandomAccessReader
implements io.github.jbellis.jvector.disk.RandomAccessReader
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.cassandra.io.util.DataInputPlus
DataInputPlus.DataInputStreamPlus -
Field Summary
Fields inherited from class org.apache.cassandra.io.util.RandomAccessReader
bufferHolder, DEFAULT_BUFFER_SIZEFields inherited from class org.apache.cassandra.io.util.RebufferingInputStream
buffer -
Method Summary
Methods inherited from class org.apache.cassandra.io.util.RandomAccessReader
available, bytesPastMark, bytesPastMark, bytesRemaining, close, current, getChannel, getCrcCheckChance, getFilePointer, getPath, getPosition, isEOF, length, mark, markSupported, open, readLine, reBuffer, reset, reset, seek, skipBytes, toStringMethods inherited from class org.apache.cassandra.io.util.RebufferingInputStream
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readFully, readInt, readLong, readPrimitiveSlowly, readShort, readUnsignedByte, readUnsignedShort, readUnsignedVInt, readUnsignedVInt32, readUTF, readVInt, readVInt32Methods inherited from class java.io.InputStream
mark, nullInputStream, read, readAllBytes, readNBytes, readNBytes, skip, skipNBytes, transferToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.io.DataInput
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTFMethods inherited from interface org.apache.cassandra.io.util.DataInputPlus
readUnsignedVInt, readUnsignedVInt32, readVInt, readVInt32, skipBytesFullyMethods inherited from interface io.github.jbellis.jvector.disk.RandomAccessReader
close, readFully, readInt, seek
-
Method Details
-
readFully
- Specified by:
readFullyin interfaceio.github.jbellis.jvector.disk.RandomAccessReader- Throws:
IOException
-
read
Read ints into an int[], starting at the current position.- Specified by:
readin interfaceio.github.jbellis.jvector.disk.RandomAccessReader- Parameters:
dest- the array to read intooffset- the offset in the array at which to start writing intscount- the number of ints to read Will change the buffer position.- Throws:
IOException
-