Class TableOptions.CompressionOptions.NoCompression
- java.lang.Object
-
- com.datastax.driver.core.schemabuilder.TableOptions.CompressionOptions
-
- com.datastax.driver.core.schemabuilder.TableOptions.CompressionOptions.NoCompression
-
- Enclosing class:
- TableOptions.CompressionOptions
public static class TableOptions.CompressionOptions.NoCompression extends TableOptions.CompressionOptions
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.datastax.driver.core.schemabuilder.TableOptions.CompressionOptions
TableOptions.CompressionOptions.Algorithm, TableOptions.CompressionOptions.NoCompression
-
-
Constructor Summary
Constructors Constructor Description NoCompression()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TableOptions.CompressionOptionswithChunkLengthInKb(Integer chunkLengthInKb)On disk, SSTables are compressed by block to allow random reads.TableOptions.CompressionOptionswithCRCCheckChance(Double crcCheckChance)When compression is enabled, each compressed block includes a checksum of that block for the purpose of detecting disk bitrate and avoiding the propagation of corruption to other replica.-
Methods inherited from class com.datastax.driver.core.schemabuilder.TableOptions.CompressionOptions
build
-
-
-
-
Method Detail
-
withChunkLengthInKb
public TableOptions.CompressionOptions withChunkLengthInKb(Integer chunkLengthInKb)
Description copied from class:TableOptions.CompressionOptionsOn disk, SSTables are compressed by block to allow random reads. This subproperty of compression defines the size (in KB) of the block. Values larger than the default value might improve the compression rate, but increases the minimum size of data to be read from disk when a read occurs. The default value is a good middle-ground for compressing tables. Adjust compression size to account for read/write access patterns (how much data is typically requested at once) and the average size of rows in the table.If no call is made to this method, the default value set by Cassandra is 54.
- Overrides:
withChunkLengthInKbin classTableOptions.CompressionOptions- Parameters:
chunkLengthInKb- the new value.- Returns:
- this object (for call chaining).
-
withCRCCheckChance
public TableOptions.CompressionOptions withCRCCheckChance(Double crcCheckChance)
Description copied from class:TableOptions.CompressionOptionsWhen compression is enabled, each compressed block includes a checksum of that block for the purpose of detecting disk bitrate and avoiding the propagation of corruption to other replica. This option defines the probability with which those checksums are checked during read. By default they are always checked. Set to 0 to disable checksum checking and to 0.5, for instance, to check them on every other read.If no call is made to this method, the default value set by Cassandra is 1.0 (always check).
- Overrides:
withCRCCheckChancein classTableOptions.CompressionOptions- Parameters:
crcCheckChance- the new value.- Returns:
- this object (for call chaining).
-
-