public interface KeyspaceMetadata extends Describable
@NonNull CqlIdentifier getName()
boolean isDurableWrites()
boolean isVirtual()
@NonNull Map<String,String> getReplication()
@NonNull Map<CqlIdentifier,TableMetadata> getTables()
@NonNull default Optional<TableMetadata> getTable(@NonNull CqlIdentifier tableId)
@NonNull default Optional<TableMetadata> getTable(@NonNull String tableName)
getTable(CqlIdentifier.fromCql(tableName))
.@NonNull Map<CqlIdentifier,ViewMetadata> getViews()
@NonNull default Map<CqlIdentifier,ViewMetadata> getViewsOnTable(@NonNull CqlIdentifier tableId)
@NonNull default Optional<ViewMetadata> getView(@NonNull CqlIdentifier viewId)
@NonNull default Optional<ViewMetadata> getView(@NonNull String viewName)
getView(CqlIdentifier.fromCql(viewName))
.@NonNull Map<CqlIdentifier,UserDefinedType> getUserDefinedTypes()
@NonNull default Optional<UserDefinedType> getUserDefinedType(@NonNull CqlIdentifier typeId)
@NonNull default Optional<UserDefinedType> getUserDefinedType(@NonNull String typeName)
getUserDefinedType(CqlIdentifier.fromCql(typeName))
.@NonNull Map<FunctionSignature,FunctionMetadata> getFunctions()
@NonNull default Optional<FunctionMetadata> getFunction(@NonNull FunctionSignature functionSignature)
@NonNull default Optional<FunctionMetadata> getFunction(@NonNull CqlIdentifier functionId, @NonNull Iterable<DataType> parameterTypes)
@NonNull default Optional<FunctionMetadata> getFunction(@NonNull String functionName, @NonNull Iterable<DataType> parameterTypes)
@NonNull default Optional<FunctionMetadata> getFunction(@NonNull CqlIdentifier functionId, @NonNull DataType... parameterTypes)
parameterTypes
- neither the individual types, nor the vararg array itself, can be null.@NonNull default Optional<FunctionMetadata> getFunction(@NonNull String functionName, @NonNull DataType... parameterTypes)
parameterTypes
- neither the individual types, nor the vararg array itself, can be null.@NonNull Map<FunctionSignature,AggregateMetadata> getAggregates()
@NonNull default Optional<AggregateMetadata> getAggregate(@NonNull FunctionSignature aggregateSignature)
@NonNull default Optional<AggregateMetadata> getAggregate(@NonNull CqlIdentifier aggregateId, @NonNull Iterable<DataType> parameterTypes)
@NonNull default Optional<AggregateMetadata> getAggregate(@NonNull String aggregateName, @NonNull Iterable<DataType> parameterTypes)
@NonNull default Optional<AggregateMetadata> getAggregate(@NonNull CqlIdentifier aggregateId, @NonNull DataType... parameterTypes)
parameterTypes
- neither the individual types, nor the vararg array itself, can be null.@NonNull default Optional<AggregateMetadata> getAggregate(@NonNull String aggregateName, @NonNull DataType... parameterTypes)
getAggregate(CqlIdentifier, DataType...)
getAggregate(CqlIdentifier.fromCql(aggregateName), parameterTypes)}.parameterTypes
- neither the individual types, nor the vararg array itself, can be null.@NonNull default String describe(boolean pretty)
Describable
describe
in interface Describable
pretty
- if true
, make the output more human-readable (line breaks, indents, and
pretty identifiers
). If false
, return the
statement on a single line with minimal formatting.@NonNull default String describeWithChildren(boolean pretty)
Describable
describeWithChildren
in interface Describable
pretty
- if true
, make the output more human-readable (line breaks, indents, and
pretty identifiers
). If false
, return each
statement on a single line with minimal formatting.default boolean shallowEquals(Object other)
Copyright © 2017–2024. All rights reserved.