public class FullColumnDescription extends ColumnDescription
Modifier and Type | Class and Description |
---|---|
static class |
FullColumnDescription.KeyOrder |
ColumnDescription.ColumnType
Constructor and Description |
---|
FullColumnDescription(String name,
ColumnDescription.ColumnType type,
boolean isNullable)
Creates a basic FullColumnDescription, for non-key columns.
|
FullColumnDescription(String name,
ColumnDescription.ColumnType type,
boolean isNullable,
Integer keyOrdinal)
Creates a FullColumnDescription.
|
FullColumnDescription(String name,
ColumnDescription.ColumnType type,
boolean isNullable,
Integer keyOrdinal,
FullColumnDescription.KeyOrder keyOrder)
Creates a FullColumnDescription.
|
FullColumnDescription(String name,
ColumnDescription.ColumnType type,
boolean isNullable,
Integer partitionKeyOrdinal,
Integer localKeyOrdinal)
Creates a FullColumnDescription.
|
FullColumnDescription(String name,
ColumnDescription.ColumnType type,
boolean isNullable,
Integer partitionKeyOrdinal,
Integer localKeyOrdinal,
FullColumnDescription.KeyOrder keyOrder)
Creates a FullColumnDescription.
|
FullColumnDescription(String name,
ColumnDescription.ColumnType type,
boolean isNullable,
Integer partitionKeyOrdinal,
Integer localKeyOrdinal,
Quantum quantum)
Creates a FullColumnDescription.
|
FullColumnDescription(String name,
ColumnDescription.ColumnType type,
boolean isNullable,
Integer partitionKeyOrdinal,
Integer localKeyOrdinal,
Quantum quantum,
FullColumnDescription.KeyOrder keyOrder)
Creates a FullColumnDescription.
|
FullColumnDescription(String name,
ColumnDescription.ColumnType type,
boolean isNullable,
Integer keyOrdinal,
Quantum quantum)
Creates a FullColumnDescription.
|
Modifier and Type | Method and Description |
---|---|
FullColumnDescription.KeyOrder |
getKeyOrder() |
Integer |
getLocalKeyOrdinal()
Get the ordinal number of where this column appears in the ordered Local Key column set.
|
Integer |
getPartitionKeyOrdinal()
Get the ordinal number of where this column appears in the ordered Partition Key column set.
|
Quantum |
getQuantum()
Get the quantum setting for this column, if present.
|
boolean |
hasKeyOrder() |
boolean |
hasQuantum()
Returns whether this column has any quantum information.
|
boolean |
isLocalKeyMember()
Whether this column is a member of the Local Key column set.
|
boolean |
isNullable()
Whether this column's values are nullable.
|
boolean |
isPartitionKeyMember()
Whether this column is a member of the Partition Key column set.
|
equals, getName, getType, hashCode
public FullColumnDescription(String name, ColumnDescription.ColumnType type, boolean isNullable)
name
- The name of the column. Required - must not be null or an empty string.type
- The type of the column. Required - must not be null.isNullable
- The nullability of the column.IllegalArgumentException
- if Column Name or Column Type are null or empty.public FullColumnDescription(String name, ColumnDescription.ColumnType type, boolean isNullable, Integer keyOrdinal)
name
- The name of the column. Required - must not be null or an empty string.type
- The type of the column. Required - must not be null.isNullable
- The nullability of the column.keyOrdinal
- The ordinal number of where this column appears in the ordered Local Key column set.
Use null if not a key column.IllegalArgumentException
- if Column Name or Column Type are null or empty.public FullColumnDescription(String name, ColumnDescription.ColumnType type, boolean isNullable, Integer keyOrdinal, FullColumnDescription.KeyOrder keyOrder)
name
- The name of the column. Required - must not be null or an empty string.type
- The type of the column. Required - must not be null.isNullable
- The nullability of the column.keyOrdinal
- The ordinal number of where this column appears in the ordered Local Key column set.
Use null if not a key column.keyOrder
- The order in which this key column will be sorted on disk as part of the local key.
Default is ASC.
Use null if not a key column.IllegalArgumentException
- if Column Name or Column Type are null or empty.public FullColumnDescription(String name, ColumnDescription.ColumnType type, boolean isNullable, Integer keyOrdinal, Quantum quantum)
name
- The name of the column. Required - must not be null or an empty string.type
- The type of the column. Required - must not be null.isNullable
- The nullability of the column.keyOrdinal
- The ordinal number of where this column appears in the ordered Local Key column set.
Use null if not a key column.quantum
- The Quantum
setting if this column
is used in partition key time quantization.
Use
FullColumnDescription(String, ColumnDescription.ColumnType, boolean, Integer)
if the quantum is not needed. IllegalArgumentException
- if the Column Name or Column Type are null or empty,
or if the quantum is set on a non-Timestamp column,
or the quantum is set on a non-partition key column.public FullColumnDescription(String name, ColumnDescription.ColumnType type, boolean isNullable, Integer partitionKeyOrdinal, Integer localKeyOrdinal)
name
- The name of the column. Required - must not be null or an empty string.type
- The type of the column. Required - must not be null.isNullable
- The nullability of the column.partitionKeyOrdinal
- The ordinal number of where this column appears in
the ordered Partition Key column set.
Use null if not a key column.localKeyOrdinal
- The ordinal number of where this column appears in
the ordered Local Key column set.
Use null if not a key column.IllegalArgumentException
- if Column Name or Column Type are null or empty.public FullColumnDescription(String name, ColumnDescription.ColumnType type, boolean isNullable, Integer partitionKeyOrdinal, Integer localKeyOrdinal, FullColumnDescription.KeyOrder keyOrder)
name
- The name of the column. Required - must not be null or an empty string.type
- The type of the column. Required - must not be null.isNullable
- The nullability of the column.partitionKeyOrdinal
- The ordinal number of where this column appears in
the ordered Partition Key column set.
Use null if not a key column.localKeyOrdinal
- The ordinal number of where this column appears in
the ordered Local Key column set.
Use null if not a key column.keyOrder
- The order in which this key column will be sorted on disk as part of the local key.
Default is ASC.
Use null if not a key column.IllegalArgumentException
- if Column Name or Column Type are null or empty.public FullColumnDescription(String name, ColumnDescription.ColumnType type, boolean isNullable, Integer partitionKeyOrdinal, Integer localKeyOrdinal, Quantum quantum)
name
- The name of the column. Required - must not be null or an empty string.type
- The type of the column. Required - must not be null.isNullable
- The nullability of the column.partitionKeyOrdinal
- The ordinal number of where this column appears in
the ordered Partition Key column set.
Use null if not a key column.localKeyOrdinal
- The ordinal number of where this column appears in
the ordered Local Key column set.
Use null if not a key column.quantum
- The Quantum
setting if this column
is used in partition key time quantization.
Use
FullColumnDescription(String, ColumnDescription.ColumnType, boolean, Integer, Integer)
if the quantum is not needed. IllegalArgumentException
- if the Column Name or Column Type are null or empty,
or if the quantum is set on a non-Timestamp column,
or the quantum is set on a non-partition key column.public FullColumnDescription(String name, ColumnDescription.ColumnType type, boolean isNullable, Integer partitionKeyOrdinal, Integer localKeyOrdinal, Quantum quantum, FullColumnDescription.KeyOrder keyOrder)
name
- The name of the column. Required - must not be null or an empty string.type
- The type of the column. Required - must not be null.isNullable
- The nullability of the column.partitionKeyOrdinal
- The ordinal number of where this column appears in
the ordered Partition Key column set.
Use null if not a key column.localKeyOrdinal
- The ordinal number of where this column appears in
the ordered Local Key column set.
Use null if not a key column.quantum
- The Quantum
setting if this column
is used in partition key time quantization.
Use
FullColumnDescription(String, ColumnDescription.ColumnType, boolean, Integer, Integer)
if the quantum is not needed. keyOrder
- The order in which this key column will be sorted on disk as part of the local key.
Default is ASC.
Use null if not a key column.IllegalArgumentException
- if the Column Name or Column Type are null or empty,
or if the quantum is set on a non-Timestamp column,
or the quantum is set on a non-partition key column.public boolean isNullable()
public boolean isPartitionKeyMember()
public boolean isLocalKeyMember()
public Integer getPartitionKeyOrdinal()
isPartitionKeyMember()
is true,
null if isPartitionKeyMember()
is false.public Integer getLocalKeyOrdinal()
isLocalKeyMember()
is true,
null if isLocalKeyMember()
is false.public Quantum getQuantum()
Quantum
instance if this column is used in partition key time quantization.public boolean hasQuantum()
public FullColumnDescription.KeyOrder getKeyOrder()
public boolean hasKeyOrder()
Copyright © 2016. All rights reserved.