Package org.apache.cassandra.io.util
Interface Rebufferer
- All Superinterfaces:
AutoCloseable,ReaderFileProxy
- All Known Implementing Classes:
BufferManagingRebufferer,BufferManagingRebufferer.Aligned,BufferManagingRebufferer.Unaligned,EmptyRebufferer,LimitingRebufferer,TailOverridingRebufferer,WrappingRebufferer
Rebufferer for reading data by a RandomAccessReader.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled when a reader is closed.rebuffer(long position) Rebuffer (move on or seek to) a given position, and return a buffer that can be used there.Methods inherited from interface org.apache.cassandra.io.util.ReaderFileProxy
channel, close, fileLength, getCrcCheckChance
-
Field Details
-
EMPTY
-
-
Method Details
-
rebuffer
Rebuffer (move on or seek to) a given position, and return a buffer that can be used there. The only guarantee about the size of the returned data is that unless rebuffering at the end of the file, the buffer will not be empty and will contain the requested position, i.e.offset <= position < offset + bh.buffer().limit(), but the buffer will not be positioned there. -
closeReader
void closeReader()Called when a reader is closed. Should clean up reader-specific data.
-