public interface ViewMetadata 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.
|
CqlIdentifier |
getBaseTable()
The table that this view is based on.
|
Optional<String> |
getWhereClause() |
boolean |
includesAllColumns()
Whether this view does a
SELECT * on its base table (this only affects the output of
describe(boolean) ). |
getClusteringColumns, getColumn, getColumn, getColumns, getId, getKeyspace, getName, getOptions, getPartitionKey, getPrimaryKey
@NonNull CqlIdentifier getBaseTable()
boolean includesAllColumns()
SELECT *
on its base table (this only affects the output of
describe(boolean)
).@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.Copyright © 2017–2020. All rights reserved.