Class SchemaKeyspaceTables

java.lang.Object
org.apache.cassandra.schema.SchemaKeyspaceTables

public class SchemaKeyspaceTables extends Object
  • Field Details

    • KEYSPACES

      public static final String KEYSPACES
      See Also:
    • TABLES

      public static final String TABLES
      See Also:
    • COLUMNS

      public static final String COLUMNS
      See Also:
    • COLUMN_MASKS

      public static final String COLUMN_MASKS
      See Also:
    • DROPPED_COLUMNS

      public static final String DROPPED_COLUMNS
      See Also:
    • TRIGGERS

      public static final String TRIGGERS
      See Also:
    • VIEWS

      public static final String VIEWS
      See Also:
    • TYPES

      public static final String TYPES
      See Also:
    • FUNCTIONS

      public static final String FUNCTIONS
      See Also:
    • AGGREGATES

      public static final String AGGREGATES
      See Also:
    • INDEXES

      public static final String INDEXES
      See Also:
    • ALL

      public static final com.google.common.collect.ImmutableList<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.
  • Constructor Details

    • SchemaKeyspaceTables

      public SchemaKeyspaceTables()