public final class SchemaKeyspace
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.List<CFMetaData> |
ALL_TABLE_METADATA |
public static final java.util.List<CFMetaData> ALL_TABLE_METADATA
public static KeyspaceMetadata metadata()
public static void saveSystemKeyspacesSchema()
public static void truncate()
public static Pair<java.util.UUID,java.util.UUID> calculateSchemaDigest()
cdc
column.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 void addTableToSchemaMutation(CFMetaData table, boolean withColumnsAndTriggers, Mutation.SimpleBuilder builder)
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(Mutation.SimpleBuilder builder, ViewDefinition oldView, ViewDefinition newView)
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 reloadSchemaAndAnnounceVersion()
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)
public static AbstractType<?> expandUserTypes(AbstractType<?> original)
Copyright © 2009-2022 The Apache Software Foundation