public interface TableMetadata extends RelationMetadata
Modifier and Type | Method and Description |
---|---|
default String |
describe(boolean pretty)
Returns a single CQL statement that creates the element.
|
default String |
describeWithChildren(boolean pretty)
Returns a CQL script that creates the element and all of its children.
|
default Optional<IndexMetadata> |
getIndex(CqlIdentifier indexId) |
default Optional<IndexMetadata> |
getIndex(String indexName)
Shortcut for
getIndex(CqlIdentifier.fromCql(indexName)) . |
Map<CqlIdentifier,IndexMetadata> |
getIndexes() |
boolean |
isCompactStorage() |
boolean |
isVirtual()
Whether this table is virtual
|
getClusteringColumns, getColumn, getColumn, getColumns, getId, getKeyspace, getName, getOptions, getPartitionKey, getPrimaryKey
boolean isCompactStorage()
boolean isVirtual()
@NonNull Map<CqlIdentifier,IndexMetadata> getIndexes()
@NonNull default Optional<IndexMetadata> getIndex(@NonNull CqlIdentifier indexId)
@NonNull default Optional<IndexMetadata> getIndex(@NonNull String indexName)
getIndex(CqlIdentifier.fromCql(indexName))
.@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)
This describes the table and all of its indices. Contrary to previous driver versions, views are not included.
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.Copyright © 2017–2024. All rights reserved.