CopyableBuilder<GlobalSecondaryIndex.Builder,GlobalSecondaryIndex>
, SdkBuilder<GlobalSecondaryIndex.Builder,GlobalSecondaryIndex>
public static interface GlobalSecondaryIndex.Builder extends CopyableBuilder<GlobalSecondaryIndex.Builder,GlobalSecondaryIndex>
Modifier and Type | Method | Description |
---|---|---|
GlobalSecondaryIndex.Builder |
indexName(String indexName) |
The name of the global secondary index.
|
GlobalSecondaryIndex.Builder |
keySchema(Collection<KeySchemaElement> keySchema) |
The complete key schema for a global secondary index, which consists of one or more pairs of attribute names
and key types:
|
GlobalSecondaryIndex.Builder |
keySchema(KeySchemaElement... keySchema) |
The complete key schema for a global secondary index, which consists of one or more pairs of attribute names
and key types:
|
GlobalSecondaryIndex.Builder |
projection(Projection projection) |
Represents attributes that are copied (projected) from the table into the global secondary index.
|
GlobalSecondaryIndex.Builder |
provisionedThroughput(ProvisionedThroughput provisionedThroughput) |
Represents the provisioned throughput settings for the specified global secondary index.
|
copy
apply, build
GlobalSecondaryIndex.Builder indexName(String indexName)
The name of the global secondary index. The name must be unique among all other indexes on this table.
indexName
- The name of the global secondary index. The name must be unique among all other indexes on this table.GlobalSecondaryIndex.Builder keySchema(Collection<KeySchemaElement> keySchema)
The complete key schema for a global secondary index, which consists of one or more pairs of attribute names and key types:
HASH
- partition key
RANGE
- sort key
The partition key of an item is also known as its hash attribute. The term "hash attribute" derives from DynamoDB' usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.
The sort key of an item is also known as its range attribute. The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.
keySchema
- The complete key schema for a global secondary index, which consists of one or more pairs of attribute
names and key types:
HASH
- partition key
RANGE
- sort key
The partition key of an item is also known as its hash attribute. The term "hash attribute" derives from DynamoDB' usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.
The sort key of an item is also known as its range attribute. The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.
GlobalSecondaryIndex.Builder keySchema(KeySchemaElement... keySchema)
The complete key schema for a global secondary index, which consists of one or more pairs of attribute names and key types:
HASH
- partition key
RANGE
- sort key
The partition key of an item is also known as its hash attribute. The term "hash attribute" derives from DynamoDB' usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.
The sort key of an item is also known as its range attribute. The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.
NOTE: This method appends the values to the existing list (if any). Use
#setKeySchema(java.util.Collection)
or #withKeySchema(java.util.Collection)
if you want to
override the existing values.
keySchema
- The complete key schema for a global secondary index, which consists of one or more pairs of attribute
names and key types:
HASH
- partition key
RANGE
- sort key
The partition key of an item is also known as its hash attribute. The term "hash attribute" derives from DynamoDB' usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.
The sort key of an item is also known as its range attribute. The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.
GlobalSecondaryIndex.Builder projection(Projection projection)
Represents attributes that are copied (projected) from the table into the global secondary index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.
projection
- Represents attributes that are copied (projected) from the table into the global secondary index.
These are in addition to the primary key attributes and index key attributes, which are automatically
projected.GlobalSecondaryIndex.Builder provisionedThroughput(ProvisionedThroughput provisionedThroughput)
Represents the provisioned throughput settings for the specified global secondary index.
For current minimum and maximum provisioned throughput values, see Limits in the Amazon DynamoDB Developer Guide.
provisionedThroughput
- Represents the provisioned throughput settings for the specified global secondary index.
For current minimum and maximum provisioned throughput values, see Limits in the Amazon DynamoDB Developer Guide.
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.