public class TableOptionsMetadata extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
String |
getAdditionalWritePolicy()
The threshold at which a cheap quorum write will be upgraded to include transient replicas.
|
double |
getBloomFilterFalsePositiveChance()
Returns the false positive chance for the Bloom filter of this table.
|
Map<String,String> |
getCaching()
Returns the caching options for this table.
|
String |
getComment()
Returns the commentary set for this table.
|
Map<String,String> |
getCompaction()
Returns the compaction options for this table.
|
Map<String,String> |
getCompression()
Returns the compression options for this table.
|
Double |
getCrcCheckChance()
When compression is enabled, this option defines the probability with which checksums for
compressed blocks are checked during reads.
|
int |
getDefaultTimeToLive()
Returns the default TTL for this table.
|
Map<String,ByteBuffer> |
getExtensions()
Returns the extension options for this table.
|
int |
getGcGraceInSeconds()
Returns the tombstone garbage collection grace time in seconds for this table.
|
Integer |
getIndexInterval()
Returns the index interval option for this table.
|
double |
getLocalReadRepairChance()
Returns the cluster local read repair chance set for this table.
|
Integer |
getMaxIndexInterval()
Returns the maximum index interval option for this table.
|
int |
getMemtableFlushPeriodInMs() |
Integer |
getMinIndexInterval()
Returns the minimum index interval option for this table.
|
boolean |
getPopulateIOCacheOnFlush()
Whether the populate I/O cache on flush is set on this table.
|
String |
getReadRepair()
Returns the read_repair option for this table.
|
double |
getReadRepairChance()
Returns the chance with which a read repair is triggered for this table.
|
boolean |
getReplicateOnWrite()
Returns whether replicateOnWrite is set for this table.
|
String |
getSpeculativeRetry()
Returns the speculative retry option for this table.
|
int |
hashCode() |
boolean |
isCDC()
Returns whether or not change data capture is enabled for this table.
|
boolean |
isCompactStorage()
Returns whether the table uses the
COMPACT STORAGE option. |
public boolean isCompactStorage()
COMPACT STORAGE
option.COMPACT STORAGE
option.public String getComment()
null
if noe has been set.public double getReadRepairChance()
public String getReadRepair()
BLOCKING
or NONE
, with the default being BLOCKING
.BLOCKING
or NONE
).public double getLocalReadRepairChance()
public boolean getReplicateOnWrite()
This is only meaningful for tables holding counters.
public int getGcGraceInSeconds()
public double getBloomFilterFalsePositiveChance()
public Map<String,String> getCaching()
public boolean getPopulateIOCacheOnFlush()
public int getMemtableFlushPeriodInMs()
public int getDefaultTimeToLive()
Note: this option is not available in Cassandra 1.2 and will return 0 (no default TTL) when connected to 1.2 nodes.
public String getSpeculativeRetry()
Note: this option is not available in Cassandra 1.2 and will return "NONE" (no speculative retry) when connected to 1.2 nodes.
public Integer getIndexInterval()
Note: this option is not available in Cassandra 1.2 (more precisely, it is not configurable
per-table) and will return 128 (the default index interval) when connected to 1.2 nodes. It is
deprecated in Cassandra 2.1 and above, and will therefore return null
for 2.1 nodes.
public Integer getMinIndexInterval()
Note: this option is available in Cassandra 2.1 and above, and will return null
for
earlier versions.
public Integer getMaxIndexInterval()
Note: this option is available in Cassandra 2.1 and above, and will return null
for
earlier versions.
public Double getCrcCheckChance()
Note that this option is available in Cassandra 3.0.0 and above, when it became a
"top-level" table option, whereas previously it was a suboption of the compression
option.
For Cassandra versions prior to 3.0.0, this method always returns null
.
public Map<String,String> getCompaction()
public Map<String,String> getCompression()
public Map<String,ByteBuffer> getExtensions()
For Cassandra versions prior to 3.0.0, this method always returns an empty map.
public boolean isCDC()
For Cassandra versions prior to 3.8.0, this method always returns false.
public String getAdditionalWritePolicy()
This option is only available in Cassandra® 4.0 and above. Default value is 99p
.
Copyright © 2012–2023. All rights reserved.