public final class SchemaKeyspace
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AGGREGATES |
static com.google.common.collect.ImmutableList<java.lang.String> |
ALL
The order in this list matters.
|
static com.google.common.collect.ImmutableList<java.lang.String> |
ALL_FOR_DIGEST
Until we upgrade the messaging service version, that is version 4.0, we must preserve the old order (before CASSANDRA-12213)
for digest calculations, otherwise the nodes will never agree on the schema during a rolling upgrade, see CASSANDRA-13559.
|
static java.util.List<CFMetaData> |
ALL_TABLE_METADATA |
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 |
public static final java.lang.String KEYSPACES
public static final java.lang.String TABLES
public static final java.lang.String COLUMNS
public static final java.lang.String DROPPED_COLUMNS
public static final java.lang.String TRIGGERS
public static final java.lang.String VIEWS
public static final java.lang.String TYPES
public static final java.lang.String FUNCTIONS
public static final java.lang.String AGGREGATES
public static final java.lang.String INDEXES
public static final com.google.common.collect.ImmutableList<java.lang.String> ALL
public static final com.google.common.collect.ImmutableList<java.lang.String> ALL_FOR_DIGEST
public static final java.util.List<CFMetaData> ALL_TABLE_METADATA
public static KeyspaceMetadata metadata()
public static void saveSystemKeyspacesSchema()
public static void truncate()
public static java.util.UUID calculateSchemaDigest()
public static java.util.Collection<Mutation> convertSchemaToMutations()
public static Mutation.SimpleBuilder makeCreateKeyspaceMutation(java.lang.String name, KeyspaceParams params, long timestamp)
public static Mutation.SimpleBuilder makeCreateKeyspaceMutation(KeyspaceMetadata keyspace, long timestamp)
public static Mutation.SimpleBuilder makeDropKeyspaceMutation(KeyspaceMetadata keyspace, long timestamp)
public static Mutation.SimpleBuilder makeCreateTypeMutation(KeyspaceMetadata keyspace, UserType type, long timestamp)
public static Mutation.SimpleBuilder dropTypeFromSchemaMutation(KeyspaceMetadata keyspace, UserType type, long timestamp)
public static Mutation.SimpleBuilder makeCreateTableMutation(KeyspaceMetadata keyspace, CFMetaData table, long timestamp)
public static Mutation.SimpleBuilder makeUpdateTableMutation(KeyspaceMetadata keyspace, CFMetaData oldTable, CFMetaData newTable, long timestamp)
public static Mutation.SimpleBuilder makeDropTableMutation(KeyspaceMetadata keyspace, CFMetaData table, long timestamp)
public static Mutation.SimpleBuilder makeCreateViewMutation(KeyspaceMetadata keyspace, ViewDefinition view, long timestamp)
public static Mutation.SimpleBuilder makeDropViewMutation(KeyspaceMetadata keyspace, ViewDefinition view, long timestamp)
public static Mutation.SimpleBuilder makeUpdateViewMutation(KeyspaceMetadata keyspace, ViewDefinition oldView, ViewDefinition newView, long timestamp)
public static Mutation.SimpleBuilder makeCreateFunctionMutation(KeyspaceMetadata keyspace, UDFunction function, long timestamp)
public static Mutation.SimpleBuilder makeDropFunctionMutation(KeyspaceMetadata keyspace, UDFunction function, long timestamp)
public static Mutation.SimpleBuilder makeCreateAggregateMutation(KeyspaceMetadata keyspace, UDAggregate aggregate, long timestamp)
public static Mutation.SimpleBuilder makeDropAggregateMutation(KeyspaceMetadata keyspace, UDAggregate aggregate, long timestamp)
public static Keyspaces fetchNonSystemKeyspaces()
public static TableParams createTableParamsFromRow(UntypedResultSet.Row row)
public static ColumnDefinition createColumnFromRow(UntypedResultSet.Row row, Types types)
public static void mergeSchemaAndAnnounceVersion(java.util.Collection<Mutation> mutations) throws ConfigurationException
mutations
- the schema changes to applyConfigurationException
- If one of metadata attributes has invalid valuepublic static void mergeSchema(java.util.Collection<Mutation> mutations)
Copyright © 2017 The Apache Software Foundation