Package org.apache.cassandra.io.util
Class AbstractReaderFileProxy
- java.lang.Object
-
- org.apache.cassandra.io.util.AbstractReaderFileProxy
-
- All Implemented Interfaces:
java.lang.AutoCloseable,ReaderFileProxy
- Direct Known Subclasses:
CompressedChunkReader
public abstract class AbstractReaderFileProxy extends java.lang.Object implements ReaderFileProxy
-
-
Field Summary
Fields Modifier and Type Field Description protected ChannelProxychannelprotected longfileLength
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractReaderFileProxy(ChannelProxy channel, long fileLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelProxychannel()voidclose()longfileLength()doublegetCrcCheckChance()Needed for tests.java.lang.StringtoString()
-
-
-
Field Detail
-
channel
protected final ChannelProxy channel
-
fileLength
protected final long fileLength
-
-
Constructor Detail
-
AbstractReaderFileProxy
protected AbstractReaderFileProxy(ChannelProxy channel, long fileLength)
-
-
Method Detail
-
channel
public ChannelProxy channel()
- Specified by:
channelin interfaceReaderFileProxy
-
fileLength
public long fileLength()
- Specified by:
fileLengthin interfaceReaderFileProxy
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- 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
-
-