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
public static class TableMetadata.CompactTableMetadata extends TableMetadata
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.cassandra.schema.TableMetadata
TableMetadata.Builder, TableMetadata.CompactTableMetadata, TableMetadata.Flag, TableMetadata.Kind
-
Nested classes/interfaces inherited from interface org.apache.cassandra.cql3.SchemaElement
SchemaElement.SchemaElementType
-
-
Field Summary
Fields Modifier and Type Field Description ColumnMetadatacompactValueColumn-
Fields inherited from class org.apache.cassandra.schema.TableMetadata
clusteringColumns, comparator, droppedColumns, flags, id, indexes, keyspace, kind, name, params, partitioner, partitionKeyColumns, partitionKeyType, regularAndStaticColumns, resource, triggers
-
Fields inherited from interface org.apache.cassandra.cql3.SchemaElement
NAME_COMPARATOR
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCompactTableMetadata(TableMetadata.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator<ColumnMetadata>allColumnsInCreateOrder()Returns an iterator over all column definitions that respect the order of the CREATE statement.java.util.Iterator<ColumnMetadata>allColumnsInSelectOrder()voidappendCqlTo(CqlBuilder builder, boolean includeDroppedColumns, boolean internals, boolean ifNotExists)AbstractType<?>columnDefinitionNameComparator(ColumnMetadata.Kind kind)com.google.common.collect.ImmutableList<ColumnMetadata>createStatementClusteringColumns()static ColumnMetadatagetCompactValueColumn(RegularAndStaticColumns columns)ColumnMetadatagetExistingColumn(ColumnIdentifier name)Returns the column of the provided name if it exists, but throws a user-visible exception if that column doesn't exist.booleanhasEmptyCompactValue()booleanisCompactTable()booleanisHiddenColumn(ColumnMetadata def)booleanisStaticCompactTable()voidvalidate()-
Methods inherited from class org.apache.cassandra.schema.TableMetadata
builder, builder, clusteringColumns, columns, elementKeyspace, elementName, elementType, enforceStrictLiveness, equals, except, getColumn, getColumn, getDroppedColumn, getDroppedColumn, getIndexNameWithDot, getReferencedUserTypes, getTableDirectoryName, getTableName, hashCode, hasStaticColumns, indexName, indexTableName, isCounter, isIndex, isView, isVirtual, minimal, partitionKeyAsClusteringComparator, partitionKeyAsCQLLiteral, partitionKeyColumns, primaryKeyAsCQLLiteral, primaryKeyColumns, regularAndStaticColumns, regularColumns, staticColumns, toCqlString, toCqlString, toDebugString, toString, unbuild, updateIndexTableMetadata, withSwapped, withSwapped, withSwapped, withSwapped, withUpdatedUserType
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.cql3.SchemaElement
elementKeyspaceQuotedIfNeeded, elementNameQuotedIfNeeded
-
-
-
-
Field Detail
-
compactValueColumn
public final ColumnMetadata compactValueColumn
-
-
Constructor Detail
-
CompactTableMetadata
protected CompactTableMetadata(TableMetadata.Builder builder)
-
-
Method Detail
-
isCompactTable
public boolean isCompactTable()
- Overrides:
isCompactTablein classTableMetadata
-
getExistingColumn
public ColumnMetadata getExistingColumn(ColumnIdentifier name)
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
public boolean isHiddenColumn(ColumnMetadata def)
-
allColumnsInSelectOrder
public java.util.Iterator<ColumnMetadata> allColumnsInSelectOrder()
- Overrides:
allColumnsInSelectOrderin classTableMetadata
-
createStatementClusteringColumns
public com.google.common.collect.ImmutableList<ColumnMetadata> createStatementClusteringColumns()
-
allColumnsInCreateOrder
public java.util.Iterator<ColumnMetadata> 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
public AbstractType<?> columnDefinitionNameComparator(ColumnMetadata.Kind kind)
-
isStaticCompactTable
public boolean isStaticCompactTable()
- Overrides:
isStaticCompactTablein classTableMetadata
-
appendCqlTo
public void appendCqlTo(CqlBuilder builder, boolean includeDroppedColumns, boolean internals, boolean ifNotExists)
- Overrides:
appendCqlToin classTableMetadata
-
getCompactValueColumn
public static ColumnMetadata getCompactValueColumn(RegularAndStaticColumns columns)
-
-