public static class TableMetadata.CompactTableMetadata extends TableMetadata
TableMetadata.Builder, TableMetadata.CompactTableMetadata, TableMetadata.Flag, TableMetadata.KindSchemaElement.SchemaElementType| Modifier and Type | Field and Description |
|---|---|
ColumnMetadata |
compactValueColumn |
clusteringColumns, comparator, droppedColumns, flags, id, indexes, keyspace, kind, name, params, partitioner, partitionKeyColumns, partitionKeyType, regularAndStaticColumns, resource, triggersNAME_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, withUpdatedUserTypeclone, finalize, getClass, notify, notifyAll, wait, wait, waitelementKeyspaceQuotedIfNeeded, elementNameQuotedIfNeededpublic final ColumnMetadata compactValueColumn
protected CompactTableMetadata(TableMetadata.Builder builder)
public boolean isCompactTable()
isCompactTable in class TableMetadatapublic ColumnMetadata getExistingColumn(ColumnIdentifier name)
TableMetadataThis 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 TableMetadataname - 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 TableMetadatapublic com.google.common.collect.ImmutableList<ColumnMetadata> createStatementClusteringColumns()
public java.util.Iterator<ColumnMetadata> allColumnsInCreateOrder()
TableMetadataallColumnsInCreateOrder in class TableMetadatapublic boolean hasEmptyCompactValue()
public void validate()
validate in class TableMetadatapublic AbstractType<?> columnDefinitionNameComparator(ColumnMetadata.Kind kind)
public boolean isStaticCompactTable()
isStaticCompactTable in class TableMetadatapublic void appendCqlTo(CqlBuilder builder, boolean includeDroppedColumns, boolean internals, boolean ifNotExists)
appendCqlTo in class TableMetadatapublic static ColumnMetadata getCompactValueColumn(RegularAndStaticColumns columns)
Copyright © 2009-2020 The Apache Software Foundation