Class: TableMetadata

TableMetadata

Describes a table

Constructor

new TableMetadata(name, encoder)

Creates a new instance of TableMetadata
Parameters:
Name Type Description
name String
encoder Encoder

Members

bloomFilterFalsePositiveChance :number

False-positive probability for SSTable Bloom filters.
Type:
  • number

caching :String

Level of caching: all, keys_only, rows_only, none
Type:
  • String

clusteringKeys :Array

Array describing the columns that form the clustering key.
Type:
  • Array

clusteringOrder :Array

Array describing the clustering order of the columns in the same order as the clusteringKeys.
Type:
  • Array

columns :Array

Array describing the table columns.
Type:
  • Array

columnsByName :Object

An associative Array of columns by name.
Type:
  • Object

comment :String

A human readable comment describing the table.
Type:
  • String

compactionClass :String

Compaction strategy class used for the table.
Type:
  • String

compactionOptions :Object

Associative-array containing the compaction options keys and values.
Type:
  • Object

compression :Object

Associative-array containing the compression options.
Type:
  • Object

gcGraceSeconds :number

Specifies the time to wait before garbage collecting tombstones (deletion markers)
Type:
  • number

localReadRepairChance :number

Specifies the probability of read repairs being invoked over all replicas in the current data center.
Type:
  • number

name :String

Name of the table
Type:
  • String

partitionKeys :Array

Array describing the columns that are part of the partition key.
Type:
  • Array

readRepairChance :number

Specifies the probability with which read repairs should be invoked on non-quorum reads. The value must be between 0 and 1.
Type:
  • number

replicateOnWrite :boolean

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.
Type:
  • boolean