Modifier and Type | Method and Description |
---|---|
static KeyspaceMetadata |
AuthKeyspace.metadata() |
Modifier and Type | Method and Description |
---|---|
KeyspaceMetadata |
Schema.getKSMetaData(java.lang.String keyspaceName)
Get metadata about keyspace by its name
|
Modifier and Type | Method and Description |
---|---|
void |
Schema.addKeyspace(KeyspaceMetadata ksm) |
void |
Schema.clearKeyspaceMetadata(KeyspaceMetadata ksm)
Remove keyspace definition from system
|
Schema |
Schema.load(KeyspaceMetadata keyspaceDef)
Load specific keyspace into Schema
|
void |
Schema.setKeyspaceMetadata(KeyspaceMetadata ksm)
Update (or insert) new keyspace definition
|
Modifier and Type | Method and Description |
---|---|
Schema |
Schema.load(java.lang.Iterable<KeyspaceMetadata> keyspaceDefs)
Load up non-system keyspaces
|
Modifier and Type | Method and Description |
---|---|
protected void |
AlterTypeStatement.checkTypeNotUsedByAggregate(KeyspaceMetadata ksm) |
protected abstract UserType |
AlterTypeStatement.makeUpdatedType(UserType toUpdate,
KeyspaceMetadata ksm) |
Modifier and Type | Method and Description |
---|---|
KeyspaceMetadata |
Keyspace.getMetadata() |
static KeyspaceMetadata |
SystemKeyspace.metadata() |
Modifier and Type | Method and Description |
---|---|
static Keyspace |
Keyspace.mockKS(KeyspaceMetadata metadata) |
void |
Keyspace.setMetadata(KeyspaceMetadata metadata) |
Modifier and Type | Method and Description |
---|---|
static KeyspaceMetadata |
SystemDistributedKeyspace.metadata() |
Modifier and Type | Method and Description |
---|---|
static KeyspaceMetadata |
KeyspaceMetadata.create(java.lang.String name,
KeyspaceParams params) |
static KeyspaceMetadata |
KeyspaceMetadata.create(java.lang.String name,
KeyspaceParams params,
Tables tables) |
static KeyspaceMetadata |
KeyspaceMetadata.create(java.lang.String name,
KeyspaceParams params,
Tables tables,
Views views,
Types types,
Functions functions) |
static KeyspaceMetadata |
SchemaKeyspace.metadata() |
KeyspaceMetadata |
KeyspaceMetadata.withSwapped(Functions functions) |
KeyspaceMetadata |
KeyspaceMetadata.withSwapped(KeyspaceParams params) |
KeyspaceMetadata |
KeyspaceMetadata.withSwapped(Tables regular) |
KeyspaceMetadata |
KeyspaceMetadata.withSwapped(Types types) |
KeyspaceMetadata |
KeyspaceMetadata.withSwapped(Views views) |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<KeyspaceMetadata> |
Keyspaces.iterator() |
java.util.stream.Stream<KeyspaceMetadata> |
Keyspaces.stream() |
Modifier and Type | Method and Description |
---|---|
Keyspaces.Builder |
Keyspaces.Builder.add(KeyspaceMetadata... keyspaces) |
Keyspaces.Builder |
Keyspaces.Builder.add(KeyspaceMetadata keyspace) |
static Mutation |
SchemaKeyspace.dropTypeFromSchemaMutation(KeyspaceMetadata keyspace,
UserType type,
long timestamp) |
static Mutation |
SchemaKeyspace.makeCreateAggregateMutation(KeyspaceMetadata keyspace,
UDAggregate aggregate,
long timestamp) |
static Mutation |
SchemaKeyspace.makeCreateFunctionMutation(KeyspaceMetadata keyspace,
UDFunction function,
long timestamp) |
static Mutation |
SchemaKeyspace.makeCreateKeyspaceMutation(KeyspaceMetadata keyspace,
long timestamp) |
static Mutation |
SchemaKeyspace.makeCreateTableMutation(KeyspaceMetadata keyspace,
CFMetaData table,
long timestamp) |
static Mutation |
SchemaKeyspace.makeCreateTypeMutation(KeyspaceMetadata keyspace,
UserType type,
long timestamp) |
static Mutation |
SchemaKeyspace.makeCreateViewMutation(KeyspaceMetadata keyspace,
ViewDefinition view,
long timestamp) |
static Mutation |
SchemaKeyspace.makeDropAggregateMutation(KeyspaceMetadata keyspace,
UDAggregate aggregate,
long timestamp) |
static Mutation |
SchemaKeyspace.makeDropFunctionMutation(KeyspaceMetadata keyspace,
UDFunction function,
long timestamp) |
static Mutation |
SchemaKeyspace.makeDropKeyspaceMutation(KeyspaceMetadata keyspace,
long timestamp) |
static Mutation |
SchemaKeyspace.makeDropTableMutation(KeyspaceMetadata keyspace,
CFMetaData table,
long timestamp) |
static Mutation |
SchemaKeyspace.makeDropViewMutation(KeyspaceMetadata keyspace,
ViewDefinition view,
long timestamp) |
static Mutation |
SchemaKeyspace.makeUpdateTableMutation(KeyspaceMetadata keyspace,
CFMetaData oldTable,
CFMetaData newTable,
long timestamp) |
static Keyspaces |
Keyspaces.of(KeyspaceMetadata... keyspaces) |
Modifier and Type | Method and Description |
---|---|
Keyspaces.Builder |
Keyspaces.Builder.add(java.lang.Iterable<KeyspaceMetadata> keyspaces) |
Keyspaces |
Keyspaces.filter(java.util.function.Predicate<KeyspaceMetadata> predicate) |
Modifier and Type | Method and Description |
---|---|
static void |
MigrationManager.announceKeyspaceUpdate(KeyspaceMetadata ksm) |
static void |
MigrationManager.announceKeyspaceUpdate(KeyspaceMetadata ksm,
boolean announceLocally) |
static void |
MigrationManager.announceNewKeyspace(KeyspaceMetadata ksm) |
static void |
MigrationManager.announceNewKeyspace(KeyspaceMetadata ksm,
boolean announceLocally) |
static void |
MigrationManager.announceNewKeyspace(KeyspaceMetadata ksm,
long timestamp,
boolean announceLocally) |
void |
MigrationManager.notifyCreateKeyspace(KeyspaceMetadata ksm) |
void |
MigrationManager.notifyDropKeyspace(KeyspaceMetadata ksm) |
void |
MigrationManager.notifyUpdateKeyspace(KeyspaceMetadata ksm) |
Modifier and Type | Method and Description |
---|---|
static KeyspaceMetadata |
ThriftConversion.fromThrift(org.apache.cassandra.thrift.KsDef ksd,
CFMetaData... cfDefs) |
Modifier and Type | Method and Description |
---|---|
static org.apache.cassandra.thrift.KsDef |
ThriftConversion.toThrift(KeyspaceMetadata ksm) |
Modifier and Type | Method and Description |
---|---|
static KeyspaceMetadata |
TraceKeyspace.metadata() |
Copyright © 2021 The Apache Software Foundation