Class CompressionInfo
java.lang.Object
org.apache.cassandra.db.streaming.CompressionInfo
Container that carries compression parameters and chunks to decompress data from stream.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract CompressionMetadata.Chunk[]chunks()Returns the offset and length of the file chunks.booleanlongComputes the size of the file to transfer.inthashCode()static CompressionInfonewInstance(CompressionMetadata.Chunk[] chunks, CompressionParams parameters) Create aCompressionInfoinstance which is fully initialized.abstract CompressionParamsReturns the compression parameters.
-
Field Details
-
serializer
-
-
Constructor Details
-
CompressionInfo
public CompressionInfo()
-
-
Method Details
-
parameters
Returns the compression parameters.- Returns:
- the compression parameters.
-
chunks
Returns the offset and length of the file chunks.- Returns:
- the offset and length of the file chunks.
-
getTotalSize
public long getTotalSize()Computes the size of the file to transfer.- Returns:
- the size of the file in bytes
-
equals
-
hashCode
public int hashCode() -
newInstance
public static CompressionInfo newInstance(CompressionMetadata.Chunk[] chunks, CompressionParams parameters) Create aCompressionInfoinstance which is fully initialized.- Parameters:
chunks- the file chunksparameters- the compression parameters
-