Class CommitLog.Configuration
- java.lang.Object
-
- org.apache.cassandra.db.commitlog.CommitLog.Configuration
-
- Enclosing class:
- CommitLog
public static final class CommitLog.Configuration extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Configuration(ParameterizedClass compressorClass, EncryptionContext encryptionContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ICompressorgetCompressor()Returns the compressor used to compress the segments.ParameterizedClassgetCompressorClass()Returns the compressor class.java.lang.StringgetCompressorName()Returns the compressor name.EncryptionContextgetEncryptionContext()Returns the encryption context used to encrypt the segments.booleanuseCompression()Checks if the segments must be compressed.booleanuseEncryption()Checks if the segments must be encrypted.
-
-
-
Constructor Detail
-
Configuration
public Configuration(ParameterizedClass compressorClass, EncryptionContext encryptionContext)
-
-
Method Detail
-
useCompression
public boolean useCompression()
Checks if the segments must be compressed.- Returns:
trueif the segments must be compressed,falseotherwise.
-
useEncryption
public boolean useEncryption()
Checks if the segments must be encrypted.- Returns:
trueif the segments must be encrypted,falseotherwise.
-
getCompressor
public ICompressor getCompressor()
Returns the compressor used to compress the segments.- Returns:
- the compressor used to compress the segments
-
getCompressorClass
public ParameterizedClass getCompressorClass()
Returns the compressor class.- Returns:
- the compressor class
-
getCompressorName
public java.lang.String getCompressorName()
Returns the compressor name.- Returns:
- the compressor name.
-
getEncryptionContext
public EncryptionContext getEncryptionContext()
Returns the encryption context used to encrypt the segments.- Returns:
- the encryption context used to encrypt the segments
-
-