public static class TableMetadata.CompactTableMetadata extends TableMetadata
TableMetadata.Builder, TableMetadata.CompactTableMetadata, TableMetadata.Flag, TableMetadata.Kind
SchemaElement.SchemaElementType
Modifier and Type | Field and Description |
---|---|
ColumnMetadata |
compactValueColumn |
clusteringColumns, comparator, droppedColumns, flags, id, indexes, keyspace, kind, name, params, partitioner, partitionKeyColumns, partitionKeyType, regularAndStaticColumns, resource, triggers
NAME_COMPARATOR
Modifier | Constructor and Description |
---|---|
protected |
CompactTableMetadata(TableMetadata.Builder builder) |
Modifier and Type | Method and 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() |
void |
appendCqlTo(CqlBuilder builder,
boolean includeDroppedColumns,
boolean internals,
boolean ifNotExists) |
AbstractType<?> |
columnDefinitionNameComparator(ColumnMetadata.Kind kind) |
com.google.common.collect.ImmutableList<ColumnMetadata> |
createStatementClusteringColumns() |
static ColumnMetadata |
getCompactValueColumn(RegularAndStaticColumns columns) |
ColumnMetadata |
getExistingColumn(ColumnIdentifier name)
Returns the column of the provided name if it exists, but throws a user-visible exception if that column doesn't
exist.
|
boolean |
hasEmptyCompactValue() |
boolean |
isCompactTable() |
boolean |
isHiddenColumn(ColumnMetadata def) |
boolean |
isStaticCompactTable() |
void |
validate() |
builder, builder, clusteringColumns, columns, elementKeyspace, elementName, elementType, enforceStrictLiveness, equals, except, getColumn, getColumn, getDroppedColumn, getDroppedColumn, getReferencedUserTypes, hashCode, hasStaticColumns, indexName, indexTableName, isCounter, isIndex, isView, isVirtual, minimal, partitionKeyAsClusteringComparator, partitionKeyColumns, primaryKeyColumns, regularAndStaticColumns, regularColumns, staticColumns, toCqlString, toCqlString, toDebugString, toString, unbuild, updateIndexTableMetadata, withSwapped, withSwapped, withSwapped, withSwapped, withUpdatedUserType
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
elementKeyspaceQuotedIfNeeded, elementNameQuotedIfNeeded
public final ColumnMetadata compactValueColumn
protected CompactTableMetadata(TableMetadata.Builder builder)
public boolean isCompactTable()
isCompactTable
in class TableMetadata
public ColumnMetadata getExistingColumn(ColumnIdentifier name)
TableMetadata
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).
getExistingColumn
in class TableMetadata
name
- the name of an existing non-hidden column of this table.name
.public boolean isHiddenColumn(ColumnMetadata def)
public java.util.Iterator<ColumnMetadata> allColumnsInSelectOrder()
allColumnsInSelectOrder
in class TableMetadata
public com.google.common.collect.ImmutableList<ColumnMetadata> createStatementClusteringColumns()
public java.util.Iterator<ColumnMetadata> allColumnsInCreateOrder()
TableMetadata
allColumnsInCreateOrder
in class TableMetadata
public boolean hasEmptyCompactValue()
public void validate()
validate
in class TableMetadata
public AbstractType<?> columnDefinitionNameComparator(ColumnMetadata.Kind kind)
public boolean isStaticCompactTable()
isStaticCompactTable
in class TableMetadata
public void appendCqlTo(CqlBuilder builder, boolean includeDroppedColumns, boolean internals, boolean ifNotExists)
appendCqlTo
in class TableMetadata
public static ColumnMetadata getCompactValueColumn(RegularAndStaticColumns columns)
Copyright © 2009- The Apache Software Foundation