class TableMetadata
Describes a table
Augments
Members
number
bloomFilterFalsePositiveChance
False-positive probability for SSTable Bloom filters.
String
caching
Level of caching: all, keys_only, rows_only, none
Array
clusteringKeys
Array describing the columns that form the clustering key.
Array
clusteringOrder
Array describing the clustering order of the columns in the same order as the clusteringKeys.
Array
columns
Array describing the table columns.
Object
columnsByName
An associative Array of columns by name.
String
comment
A human readable comment describing the table.
String
compactionClass
Compaction strategy class used for the table.
Object
compactionOptions
Associative-array containing the compaction options keys and values.
Object
compression
Associative-array containing the compression options.
When compression is enabled, this option defines the probability with which checksums for compressed blocks are checked during reads. The default value for this options is 1.0 (always check).
For Cassandra versions prior to 3.0.0, this method always returns {@code null}.
Number
defaultTtl
Returns the default TTL for this table.
Note: this option is not available in Cassandra 1.2 and will return 0 (no default TTL) when connected to 1.2 nodes.
Object
extensions
An associative Array containing extra metadata for the table.
For Cassandra versions prior to 3.0.0, this method always returns {@code null}.
number
gcGraceSeconds
Specifies the time to wait before garbage collecting tombstones (deletion markers)
Returns the index interval option for this table.
Note: this option is only available in Cassandra 2.0. It is deprecated in Cassandra 2.1 and above, and will therefore return {@code null} for 2.1 nodes.
Boolean
isCompact
Determines whether the table uses the COMPACT STORAGE option.
number
localReadRepairChance
Specifies the probability of read repairs being invoked over all replicas in the current data center.
Returns the maximum index interval option for this table.
Note: this option is available in Cassandra 2.1 and above, and will return {@code null} for earlier versions.
Number
memtableFlushPeriod
Returns the memtable flush period (in milliseconds) option for this table.
Note: this option is available only on Cassandra 2.x and will return 0 (no periodic flush) when connected to 1.2 nodes.
Returns the minimum index interval option for this table.
Note: this option is available in Cassandra 2.1 and above, and will return {@code null} for earlier versions.
String
name
Name of the object
Array
partitionKeys
Array describing the columns that are part of the partition key.
Boolean
populateCacheOnFlush
Whether the populate I/O cache on flush is set on this table.
number
readRepairChance
Specifies the probability with which read repairs should be invoked on non-quorum reads. The value must be between 0 and 1.
Boolean
replicateOnWrite
Applies only to counter tables. When set to true, replicates writes to all affected replicas regardless of the consistency level specified by the client for a write request. For counter tables, this should always be set to true.
String
speculativeRetry
- Returns the speculative retry option for this table.
Note: this option is not available in Cassandra 1.2 and will return “NONE” (no speculative retry) when connected to 1.2 nodes.
Constructor
TableMetadata
(String
name)
Creates a new instance of TableMetadata