public class FullColumnDescription extends ColumnDescription
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 partitionKeyOrdinal,
Integer localKeyOrdinal)
Creates a FullColumnDescription.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 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 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.Copyright © 2016. All rights reserved.