Package org.apache.cassandra.io.util
Class AbstractReaderFileProxy
java.lang.Object
org.apache.cassandra.io.util.AbstractReaderFileProxy
- All Implemented Interfaces:
AutoCloseable,ReaderFileProxy
- Direct Known Subclasses:
CompressedChunkReader
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractReaderFileProxy(ChannelProxy channel, long fileLength) -
Method Summary
-
Field Details
-
channel
-
fileLength
protected final long fileLength
-
-
Constructor Details
-
AbstractReaderFileProxy
-
-
Method Details
-
channel
- Specified by:
channelin interfaceReaderFileProxy
-
fileLength
public long fileLength()- Specified by:
fileLengthin interfaceReaderFileProxy
-
toString
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein 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
-