Interface Describable
-
- All Known Subinterfaces:
AggregateMetadata,DseAggregateMetadata,DseFunctionMetadata,DseGraphKeyspaceMetadata,DseGraphTableMetadata,DseIndexMetadata,DseKeyspaceMetadata,DseRelationMetadata,DseTableMetadata,DseViewMetadata,FunctionMetadata,IndexMetadata,KeyspaceMetadata,RelationMetadata,TableMetadata,UserDefinedType,ViewMetadata
public interface DescribableA schema element that can be described in terms of CQLCREATEstatements.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringdescribe(boolean pretty)Returns a single CQL statement that creates the element.StringdescribeWithChildren(boolean pretty)Returns a CQL script that creates the element and all of its children.
-
-
-
Method Detail
-
describe
@NonNull String describe(boolean pretty)
Returns a single CQL statement that creates the element.- 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 String describeWithChildren(boolean pretty)
Returns 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.- 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.
-
-