Interface ViewMetadata
-
- All Superinterfaces:
Describable,RelationMetadata
- All Known Subinterfaces:
DseViewMetadata
public interface ViewMetadata extends RelationMetadata
A materialized view in the schema metadata.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Stringdescribe(boolean pretty)Returns a single CQL statement that creates the element.default StringdescribeWithChildren(boolean pretty)Returns a CQL script that creates the element and all of its children.CqlIdentifiergetBaseTable()The table that this view is based on.Optional<String>getWhereClause()booleanincludesAllColumns()Whether this view does aSELECT *on its base table (this only affects the output ofdescribe(boolean)).-
Methods inherited from interface com.datastax.oss.driver.api.core.metadata.schema.RelationMetadata
getClusteringColumns, getColumn, getColumn, getColumns, getId, getKeyspace, getName, getOptions, getPartitionKey, getPrimaryKey
-
-
-
-
Method Detail
-
getBaseTable
@NonNull CqlIdentifier getBaseTable()
The table that this view is based on.
-
includesAllColumns
boolean includesAllColumns()
Whether this view does aSELECT *on its base table (this only affects the output ofdescribe(boolean)).
-
describe
@NonNull default String describe(boolean pretty)
Description copied from interface:DescribableReturns a single CQL statement that creates the element.- Specified by:
describein interfaceDescribable- Parameters:
pretty- iftrue, make the output more human-readable (line breaks, indents, andpretty identifiers). Iffalse, return the statement on a single line with minimal formatting.
-
describeWithChildren
@NonNull default String describeWithChildren(boolean pretty)
Description copied from interface:DescribableReturns a CQL script that creates the element and all of its children. For example: a schema with its tables, materialized views, types, etc. A table with its indices.- Specified by:
describeWithChildrenin interfaceDescribable- Parameters:
pretty- iftrue, make the output more human-readable (line breaks, indents, andpretty identifiers). Iffalse, return each statement on a single line with minimal formatting.
-
-