Package org.apache.cassandra.hints
Class EncryptedChecksummedDataInput
java.lang.Object
java.io.InputStream
org.apache.cassandra.io.util.DataInputPlus.DataInputStreamPlus
org.apache.cassandra.io.util.RebufferingInputStream
org.apache.cassandra.hints.ChecksummedDataInput
org.apache.cassandra.hints.EncryptedChecksummedDataInput
- All Implemented Interfaces:
Closeable,DataInput,AutoCloseable,DataInputPlus
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.cassandra.io.util.DataInputPlus
DataInputPlus.DataInputStreamPlus -
Field Summary
Fields inherited from class org.apache.cassandra.hints.ChecksummedDataInput
bufferOffset, channelFields inherited from class org.apache.cassandra.io.util.RebufferingInputStream
buffer -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEncryptedChecksummedDataInput(ChannelProxy channel, Cipher cipher, ICompressor compressor, long filePosition) -
Method Summary
Modifier and TypeMethodDescriptionReturn a seekable representation of the current position.longReturns the position in the source file, which is different for getPosition() for compressed/encrypted files and may be imprecise.booleanisEOF()Since an entire block of compressed data is read off of disk, not just a hint at a time, we don't report EOF until the decompressed data has also been read completelyprotected voidvoidstatic ChecksummedDataInputupgradeInput(ChecksummedDataInput input, Cipher cipher, ICompressor compressor) Methods inherited from class org.apache.cassandra.hints.ChecksummedDataInput
bytesPastLimit, checkCrc, checkLimit, close, getChannel, getPath, getPosition, limit, open, read, readFully, reBuffer, resetCrc, resetLimit, tryUncacheReadMethods inherited from class org.apache.cassandra.io.util.RebufferingInputStream
read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readPrimitiveSlowly, readShort, readUnsignedByte, readUnsignedShort, readUnsignedVInt, readUnsignedVInt32, readUTF, readVInt, readVInt32, skipBytesMethods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cassandra.io.util.DataInputPlus
skipBytesFully
-
Constructor Details
-
EncryptedChecksummedDataInput
protected EncryptedChecksummedDataInput(ChannelProxy channel, Cipher cipher, ICompressor compressor, long filePosition)
-
-
Method Details
-
isEOF
public boolean isEOF()Since an entire block of compressed data is read off of disk, not just a hint at a time, we don't report EOF until the decompressed data has also been read completely- Overrides:
isEOFin classChecksummedDataInput
-
getSourcePosition
public long getSourcePosition()Description copied from class:ChecksummedDataInputReturns the position in the source file, which is different for getPosition() for compressed/encrypted files and may be imprecise.- Overrides:
getSourcePositionin classChecksummedDataInput
-
getSeekPosition
Description copied from class:ChecksummedDataInputReturn a seekable representation of the current position. For compressed files this is chunk position in file and offset within chunk.- Overrides:
getSeekPositionin classChecksummedDataInput
-
seek
- Overrides:
seekin classChecksummedDataInput
-
readBuffer
protected void readBuffer()- Overrides:
readBufferin classChecksummedDataInput
-
upgradeInput
public static ChecksummedDataInput upgradeInput(ChecksummedDataInput input, Cipher cipher, ICompressor compressor)
-