Package org.apache.cassandra.schema
Class TableMetadata.CompactTableMetadata
java.lang.Object
org.apache.cassandra.schema.TableMetadata
org.apache.cassandra.schema.TableMetadata.CompactTableMetadata
- All Implemented Interfaces:
SchemaElement
- Enclosing class:
- TableMetadata
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.cassandra.schema.TableMetadata
TableMetadata.Builder, TableMetadata.CompactTableMetadata, TableMetadata.Flag, TableMetadata.KindNested classes/interfaces inherited from interface org.apache.cassandra.cql3.SchemaElement
SchemaElement.SchemaElementType -
Field Summary
FieldsFields inherited from class org.apache.cassandra.schema.TableMetadata
clusteringColumns, comparator, droppedColumns, flags, id, indexes, keyspace, kind, name, params, partitioner, partitionKeyColumns, partitionKeyType, regularAndStaticColumns, resource, triggersFields inherited from interface org.apache.cassandra.cql3.SchemaElement
NAME_COMPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns an iterator over all column definitions that respect the order of the CREATE statement.voidappendCqlTo(CqlBuilder builder, boolean includeDroppedColumns, boolean internals, boolean ifNotExists) AbstractType<?>com.google.common.collect.ImmutableList<ColumnMetadata>static ColumnMetadataReturns the column of the provided name if it exists, but throws a user-visible exception if that column doesn't exist.booleanbooleanbooleanbooleanvoidvalidate()Methods inherited from class org.apache.cassandra.schema.TableMetadata
builder, builder, clusteringColumns, columns, dependsOn, elementKeyspace, elementName, elementType, enforceStrictLiveness, equals, except, getColumn, getColumn, getDroppedColumn, getDroppedColumn, getIndexNameWithDot, getReferencedUserTypes, getTableDirectoryName, getTableName, hashCode, hasMaskedColumns, hasStaticColumns, indexName, indexTableName, isCounter, isIncrementalBackupsEnabled, isIndex, isView, isVirtual, minimal, partitionKeyAsClusteringComparator, partitionKeyAsCQLLiteral, partitionKeyColumns, primaryKeyAsCQLLiteral, primaryKeyColumns, regularAndStaticColumns, regularColumns, staticColumns, toCqlString, toCqlString, toDebugString, toString, unbuild, updateIndexTableMetadata, validateCompatibility, withSwapped, withSwapped, withSwapped, withSwapped, withUpdatedUserTypeMethods 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
-
compactValueColumn
-
-
Constructor Details
-
CompactTableMetadata
-
-
Method Details
-
isCompactTable
public boolean isCompactTable()- Overrides:
isCompactTablein classTableMetadata
-
getExistingColumn
Description copied from class:TableMetadataReturns the column of the provided name if it exists, but throws a user-visible exception if that column doesn't exist.This method is for finding columns from a name provided by the user, and as such it does _not_ returne hidden columns (throwing that the column is unknown instead).
- Overrides:
getExistingColumnin classTableMetadata- Parameters:
name- the name of an existing non-hidden column of this table.- Returns:
- the column metadata corresponding to
name.
-
isHiddenColumn
-
allColumnsInSelectOrder
- Overrides:
allColumnsInSelectOrderin classTableMetadata
-
createStatementClusteringColumns
-
allColumnsInCreateOrder
Description copied from class:TableMetadataReturns an iterator over all column definitions that respect the order of the CREATE statement.- Overrides:
allColumnsInCreateOrderin classTableMetadata
-
hasEmptyCompactValue
public boolean hasEmptyCompactValue() -
validate
public void validate()- Overrides:
validatein classTableMetadata
-
columnDefinitionNameComparator
-
isStaticCompactTable
public boolean isStaticCompactTable()- Overrides:
isStaticCompactTablein classTableMetadata
-
appendCqlTo
public void appendCqlTo(CqlBuilder builder, boolean includeDroppedColumns, boolean internals, boolean ifNotExists) - Overrides:
appendCqlToin classTableMetadata
-
getCompactValueColumn
-