Package org.apache.cassandra.schema
Class SchemaKeyspaceTables
java.lang.Object
org.apache.cassandra.schema.SchemaKeyspaceTables
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final com.google.common.collect.ImmutableList<String>The order in this list matters.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
KEYSPACES
- See Also:
-
TABLES
- See Also:
-
COLUMNS
- See Also:
-
COLUMN_MASKS
- See Also:
-
DROPPED_COLUMNS
- See Also:
-
TRIGGERS
- See Also:
-
VIEWS
- See Also:
-
TYPES
- See Also:
-
FUNCTIONS
- See Also:
-
AGGREGATES
- See Also:
-
INDEXES
- See Also:
-
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.
-
-
Constructor Details
-
SchemaKeyspaceTables
public SchemaKeyspaceTables()
-