public static class TableMetadata.Options extends Object
Modifier and Type | Method and Description |
---|---|
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.
|
int |
getDefaultTimeToLive()
Returns the default TTL 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.
|
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.
|
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 double getLocalReadRepairChance()
public boolean getReplicateOnWrite()
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 Map<String,String> getCompaction()
Copyright © 2012–2015. All rights reserved.