Package org.apache.cassandra.schema
Class SchemaKeyspaceTables
- java.lang.Object
-
- org.apache.cassandra.schema.SchemaKeyspaceTables
-
public class SchemaKeyspaceTables extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
AGGREGATES
static com.google.common.collect.ImmutableList<java.lang.String>
ALL
The order in this list matters.static java.lang.String
COLUMN_MASKS
static java.lang.String
COLUMNS
static java.lang.String
DROPPED_COLUMNS
static java.lang.String
FUNCTIONS
static java.lang.String
INDEXES
static java.lang.String
KEYSPACES
static java.lang.String
TABLES
static java.lang.String
TRIGGERS
static java.lang.String
TYPES
static java.lang.String
VIEWS
-
Constructor Summary
Constructors Constructor Description SchemaKeyspaceTables()
-
-
-
Field Detail
-
KEYSPACES
public static final java.lang.String KEYSPACES
- See Also:
- Constant Field Values
-
TABLES
public static final java.lang.String TABLES
- See Also:
- Constant Field Values
-
COLUMNS
public static final java.lang.String COLUMNS
- See Also:
- Constant Field Values
-
COLUMN_MASKS
public static final java.lang.String COLUMN_MASKS
- See Also:
- Constant Field Values
-
DROPPED_COLUMNS
public static final java.lang.String DROPPED_COLUMNS
- See Also:
- Constant Field Values
-
TRIGGERS
public static final java.lang.String TRIGGERS
- See Also:
- Constant Field Values
-
VIEWS
public static final java.lang.String VIEWS
- See Also:
- Constant Field Values
-
TYPES
public static final java.lang.String TYPES
- See Also:
- Constant Field Values
-
FUNCTIONS
public static final java.lang.String FUNCTIONS
- See Also:
- Constant Field Values
-
AGGREGATES
public static final java.lang.String AGGREGATES
- See Also:
- Constant Field Values
-
INDEXES
public static final java.lang.String INDEXES
- See Also:
- Constant Field Values
-
ALL
public static final com.google.common.collect.ImmutableList<java.lang.String> ALL
The order in this list matters. When flushing schema tables, we want to flush them in a way that mitigates the effects of an abrupt shutdown whilst the tables are being flushed. On startup, we load the schema from disk before replaying the CL, so we need to try to avoid problems like reading a table without columns or types, for example. So columns and types should be flushed before tables, which should be flushed before keyspaces. When truncating, the order should be reversed. For immutable lists this is an efficient operation that simply iterates in reverse order. See CASSANDRA-12213 for more details.
-
-