Package org.apache.cassandra.schema
Class ViewMetadata
java.lang.Object
org.apache.cassandra.schema.ViewMetadata
- All Implemented Interfaces:
SchemaElement
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.cassandra.cql3.SchemaElement
SchemaElement.SchemaElementType -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal TableIdfinal Stringfinal booleanfinal TableMetadatafinal WhereClauseFields inherited from interface org.apache.cassandra.cql3.SchemaElement
NAME_COMPARATOR -
Constructor Summary
ConstructorsConstructorDescriptionViewMetadata(TableId baseTableId, String baseTableName, boolean includeAllColumns, WhereClause whereClause, TableMetadata metadata) -
Method Summary
Modifier and TypeMethodDescriptionvoidappendCqlTo(CqlBuilder builder, boolean internals, boolean ifNotExists) copy(TableMetadata newMetadata) Returns the CQL name of the keyspace to which this schema element belong.Returns the CQL name of this schema element.Return the schema element typebooleaninthashCode()booleanincludes(ColumnIdentifier column) keyspace()name()booleanreferencesUserType(ByteBuffer name) toCqlString(boolean withInternals, boolean ifNotExists) Returns a CQL representation of this elementtoString()withAddedRegularColumn(ColumnMetadata column) withNewColumnMask(ColumnIdentifier name, ColumnMask mask) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.cassandra.cql3.SchemaElement
elementKeyspaceQuotedIfNeeded, elementNameQuotedIfNeeded
-
Field Details
-
baseTableId
-
baseTableName
-
includeAllColumns
public final boolean includeAllColumns -
metadata
-
whereClause
-
-
Constructor Details
-
ViewMetadata
public ViewMetadata(TableId baseTableId, String baseTableName, boolean includeAllColumns, WhereClause whereClause, TableMetadata metadata) - Parameters:
baseTableId- Internal ID of the table which this view is based off ofincludeAllColumns- Whether to include all columns or not
-
-
Method Details
-
keyspace
-
name
-
includes
- Returns:
- true if the view specified by this definition will include the column, false otherwise
-
copy
-
baseTableMetadata
-
equals
-
hashCode
public int hashCode() -
toString
-
referencesUserType
-
withUpdatedUserType
-
withRenamedPrimaryKeyColumn
-
withAddedRegularColumn
-
withNewColumnMask
-
appendCqlTo
-
elementType
Description copied from interface:SchemaElementReturn the schema element type- Specified by:
elementTypein interfaceSchemaElement- Returns:
- the schema element type
-
elementKeyspace
Description copied from interface:SchemaElementReturns the CQL name of the keyspace to which this schema element belong.- Specified by:
elementKeyspacein interfaceSchemaElement- Returns:
- the keyspace name.
-
elementName
Description copied from interface:SchemaElementReturns the CQL name of this schema element.- Specified by:
elementNamein interfaceSchemaElement- Returns:
- the name of this schema element.
-
toCqlString
Description copied from interface:SchemaElementReturns a CQL representation of this element- Specified by:
toCqlStringin interfaceSchemaElement- 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
-