public class GlobalSecondaryIndex extends Object implements Serializable
Represents the properties of a global secondary index.
| Constructor and Description |
|---|
GlobalSecondaryIndex() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getIndexName()
The name of the global secondary index.
|
List<KeySchemaElement> |
getKeySchema()
The complete key schema for a global secondary index, which consists
of one or more pairs of attribute names and key types:
|
Projection |
getProjection()
Represents attributes that are copied (projected) from the table into
an index.
|
ProvisionedThroughput |
getProvisionedThroughput()
Represents the provisioned throughput settings for a specified table
or index.
|
int |
hashCode() |
void |
setIndexName(String indexName)
The name of the global secondary index.
|
void |
setKeySchema(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:
|
void |
setProjection(Projection projection)
Represents attributes that are copied (projected) from the table into
an index.
|
void |
setProvisionedThroughput(ProvisionedThroughput provisionedThroughput)
Represents the provisioned throughput settings for a specified table
or index.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GlobalSecondaryIndex |
withIndexName(String indexName)
The name of the global secondary index.
|
GlobalSecondaryIndex |
withKeySchema(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 |
withKeySchema(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 |
withProjection(Projection projection)
Represents attributes that are copied (projected) from the table into
an index.
|
GlobalSecondaryIndex |
withProvisionedThroughput(ProvisionedThroughput provisionedThroughput)
Represents the provisioned throughput settings for a specified table
or index.
|
public String getIndexName()
Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+
public void setIndexName(String indexName)
Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+
indexName - The name of the global secondary index. The name must be unique among
all other indexes on this table.public GlobalSecondaryIndex withIndexName(String indexName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+
indexName - The name of the global secondary index. The name must be unique among
all other indexes on this table.public List<KeySchemaElement> getKeySchema()
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.
Constraints:
Length: 1 - 2
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.
public void setKeySchema(Collection<KeySchemaElement> keySchema)
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.
Constraints:
Length: 1 - 2
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.
public GlobalSecondaryIndex withKeySchema(KeySchemaElement... keySchema)
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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 2
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.
public GlobalSecondaryIndex withKeySchema(Collection<KeySchemaElement> keySchema)
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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 2
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.
public Projection getProjection()
public void setProjection(Projection projection)
projection - Represents attributes that are copied (projected) from the table into
an index. These are in addition to the primary key attributes and
index key attributes, which are automatically projected.public GlobalSecondaryIndex withProjection(Projection projection)
Returns a reference to this object so that method calls can be chained together.
projection - Represents attributes that are copied (projected) from the table into
an index. These are in addition to the primary key attributes and
index key attributes, which are automatically projected.public ProvisionedThroughput getProvisionedThroughput()
For current minimum and maximum provisioned throughput values, see Limits in the Amazon DynamoDB Developer Guide.
For current minimum and maximum provisioned throughput values, see Limits in the Amazon DynamoDB Developer Guide.
public void setProvisionedThroughput(ProvisionedThroughput provisionedThroughput)
For current minimum and maximum provisioned throughput values, see Limits in the Amazon DynamoDB Developer Guide.
provisionedThroughput - Represents the provisioned throughput settings for a specified table
or index. The settings can be modified using the UpdateTable
operation. For current minimum and maximum provisioned throughput values, see Limits in the Amazon DynamoDB Developer Guide.
public GlobalSecondaryIndex withProvisionedThroughput(ProvisionedThroughput provisionedThroughput)
For current minimum and maximum provisioned throughput values, see Limits in the Amazon DynamoDB Developer Guide.
Returns a reference to this object so that method calls can be chained together.
provisionedThroughput - Represents the provisioned throughput settings for a specified table
or index. The settings can be modified using the UpdateTable
operation. For current minimum and maximum provisioned throughput values, see Limits in the Amazon DynamoDB Developer Guide.
public String toString()
toString in class ObjectObject.toString()Copyright © 2016. All rights reserved.