@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Schema extends Object implements Serializable, Cloneable, StructuredPojo
A Schema specifies the expected data model of the table.
Constructor and Description |
---|
Schema() |
Modifier and Type | Method and Description |
---|---|
Schema |
clone() |
boolean |
equals(Object obj) |
List<PartitionKey> |
getCompositePartitionKey()
A non-empty list of partition keys defining the attributes used to partition the table data.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCompositePartitionKey(Collection<PartitionKey> compositePartitionKey)
A non-empty list of partition keys defining the attributes used to partition the table data.
|
String |
toString()
Returns a string representation of this object.
|
Schema |
withCompositePartitionKey(Collection<PartitionKey> compositePartitionKey)
A non-empty list of partition keys defining the attributes used to partition the table data.
|
Schema |
withCompositePartitionKey(PartitionKey... compositePartitionKey)
A non-empty list of partition keys defining the attributes used to partition the table data.
|
public List<PartitionKey> getCompositePartitionKey()
A non-empty list of partition keys defining the attributes used to partition the table data. The order of the list determines the partition hierarchy. The name and type of each partition key as well as the partition key order cannot be changed after the table is created. However, the enforcement level of each partition key can be changed.
public void setCompositePartitionKey(Collection<PartitionKey> compositePartitionKey)
A non-empty list of partition keys defining the attributes used to partition the table data. The order of the list determines the partition hierarchy. The name and type of each partition key as well as the partition key order cannot be changed after the table is created. However, the enforcement level of each partition key can be changed.
compositePartitionKey
- A non-empty list of partition keys defining the attributes used to partition the table data. The order of
the list determines the partition hierarchy. The name and type of each partition key as well as the
partition key order cannot be changed after the table is created. However, the enforcement level of each
partition key can be changed.public Schema withCompositePartitionKey(PartitionKey... compositePartitionKey)
A non-empty list of partition keys defining the attributes used to partition the table data. The order of the list determines the partition hierarchy. The name and type of each partition key as well as the partition key order cannot be changed after the table is created. However, the enforcement level of each partition key can be changed.
NOTE: This method appends the values to the existing list (if any). Use
setCompositePartitionKey(java.util.Collection)
or
withCompositePartitionKey(java.util.Collection)
if you want to override the existing values.
compositePartitionKey
- A non-empty list of partition keys defining the attributes used to partition the table data. The order of
the list determines the partition hierarchy. The name and type of each partition key as well as the
partition key order cannot be changed after the table is created. However, the enforcement level of each
partition key can be changed.public Schema withCompositePartitionKey(Collection<PartitionKey> compositePartitionKey)
A non-empty list of partition keys defining the attributes used to partition the table data. The order of the list determines the partition hierarchy. The name and type of each partition key as well as the partition key order cannot be changed after the table is created. However, the enforcement level of each partition key can be changed.
compositePartitionKey
- A non-empty list of partition keys defining the attributes used to partition the table data. The order of
the list determines the partition hierarchy. The name and type of each partition key as well as the
partition key order cannot be changed after the table is created. However, the enforcement level of each
partition key can be changed.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.