Package org.apache.cassandra.cql3
Interface SchemaElement
- All Known Implementing Classes:
JavaBasedUDFunction,KeyspaceMetadata,TableMetadata,TableMetadata.CompactTableMetadata,UDAggregate,UDFunction,UserFunction,UserType,ViewMetadata
public interface SchemaElement
A schema element (keyspace, udt, udf, uda, table, index, view).
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Comparator<SchemaElement>Comparator used to sortDescribablename. -
Method Summary
Modifier and TypeMethodDescriptionReturns the CQL name of the keyspace to which this schema element belong.default StringReturns the CQL name of this schema element.default StringReturn the schema element typetoCqlString(boolean withInternals, boolean ifNotExists) Returns a CQL representation of this element
-
Field Details
-
NAME_COMPARATOR
Comparator used to sortDescribablename.
-
-
Method Details
-
elementType
SchemaElement.SchemaElementType elementType()Return the schema element type- Returns:
- the schema element type
-
elementKeyspace
String elementKeyspace()Returns the CQL name of the keyspace to which this schema element belong.- Returns:
- the keyspace name.
-
elementName
String elementName()Returns the CQL name of this schema element.- Returns:
- the name of this schema element.
-
elementNameQuotedIfNeeded
-
elementKeyspaceQuotedIfNeeded
-
toCqlString
Returns a CQL representation of this element- Parameters:
withInternals- if the internals part of the CQL should be exposed.ifNotExists- if "IF NOT EXISTS" should be included.- Returns:
- a CQL representation of this element
-