Package org.apache.cassandra.io.util
Class EmptyRebufferer
java.lang.Object
org.apache.cassandra.io.util.EmptyRebufferer
- All Implemented Interfaces:
AutoCloseable,ReaderFileProxy,Rebufferer,RebuffererFactory
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.cassandra.io.util.Rebufferer
Rebufferer.BufferHolder -
Field Summary
Fields inherited from interface org.apache.cassandra.io.util.Rebufferer
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchannel()voidclose()voidCalled when a reader is closed.longdoubleNeeded for tests.instantiateRebufferer(boolean isScan) rebuffer(long position) Rebuffer (move on or seek to) a given position, and return a buffer that can be used there.
-
Constructor Details
-
EmptyRebufferer
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceReaderFileProxy
-
channel
- Specified by:
channelin interfaceReaderFileProxy
-
fileLength
public long fileLength()- Specified by:
fileLengthin interfaceReaderFileProxy
-
getCrcCheckChance
public double getCrcCheckChance()Description copied from interface:ReaderFileProxyNeeded for tests. Returns the table's CRC check chance, which is only set for compressed tables.- Specified by:
getCrcCheckChancein interfaceReaderFileProxy
-
rebuffer
Description copied from interface:RebuffererRebuffer (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.- Specified by:
rebufferin interfaceRebufferer
-
closeReader
public void closeReader()Description copied from interface:RebuffererCalled when a reader is closed. Should clean up reader-specific data.- Specified by:
closeReaderin interfaceRebufferer
-
instantiateRebufferer
- Specified by:
instantiateRebuffererin interfaceRebuffererFactory
-