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 ChannelProxy
channel
protected long
fileLength
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractReaderFileProxy(ChannelProxy channel, long fileLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelProxy
channel()
void
close()
long
fileLength()
double
getCrcCheckChance()
Needed for tests.java.lang.String
toString()
-
-
-
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:
channel
in interfaceReaderFileProxy
-
fileLength
public long fileLength()
- Specified by:
fileLength
in interfaceReaderFileProxy
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfaceReaderFileProxy
-
getCrcCheckChance
public double getCrcCheckChance()
Description copied from interface:ReaderFileProxy
Needed for tests. Returns the table's CRC check chance, which is only set for compressed tables.- Specified by:
getCrcCheckChance
in interfaceReaderFileProxy
-
-