public class LocalSecondaryIndexDescription extends Object implements Serializable
Represents the properties of a local secondary index.
| Constructor and Description |
|---|
LocalSecondaryIndexDescription() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getIndexArn()
The Amazon Resource Name (ARN) that uniquely identifies the index.
|
String |
getIndexName()
Represents the name of the local secondary index.
|
Long |
getIndexSizeBytes()
The total size of the specified index, in bytes.
|
Long |
getItemCount()
The number of items in the specified index.
|
List<KeySchemaElement> |
getKeySchema()
The complete key schema for the local secondary index, consisting 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.
|
int |
hashCode() |
void |
setIndexArn(String indexArn)
The Amazon Resource Name (ARN) that uniquely identifies the index.
|
void |
setIndexName(String indexName)
Represents the name of the local secondary index.
|
void |
setIndexSizeBytes(Long indexSizeBytes)
The total size of the specified index, in bytes.
|
void |
setItemCount(Long itemCount)
The number of items in the specified index.
|
void |
setKeySchema(Collection<KeySchemaElement> keySchema)
The complete key schema for the local secondary index, consisting 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.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
LocalSecondaryIndexDescription |
withIndexArn(String indexArn)
The Amazon Resource Name (ARN) that uniquely identifies the index.
|
LocalSecondaryIndexDescription |
withIndexName(String indexName)
Represents the name of the local secondary index.
|
LocalSecondaryIndexDescription |
withIndexSizeBytes(Long indexSizeBytes)
The total size of the specified index, in bytes.
|
LocalSecondaryIndexDescription |
withItemCount(Long itemCount)
The number of items in the specified index.
|
LocalSecondaryIndexDescription |
withKeySchema(Collection<KeySchemaElement> keySchema)
The complete key schema for the local secondary index, consisting of
one or more pairs of attribute names and key types:
|
LocalSecondaryIndexDescription |
withKeySchema(KeySchemaElement... keySchema)
The complete key schema for the local secondary index, consisting of
one or more pairs of attribute names and key types:
|
LocalSecondaryIndexDescription |
withProjection(Projection projection)
Represents attributes that are copied (projected) from the table into
an 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 - Represents the name of the local secondary index.public LocalSecondaryIndexDescription 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 - Represents the name of the local secondary index.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 the local secondary index, consisting 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 LocalSecondaryIndexDescription 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 the local secondary index, consisting 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 LocalSecondaryIndexDescription 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 the local secondary index, consisting 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 LocalSecondaryIndexDescription 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 Long getIndexSizeBytes()
public void setIndexSizeBytes(Long indexSizeBytes)
indexSizeBytes - The total size of the specified index, in bytes. DynamoDB updates this
value approximately every six hours. Recent changes might not be
reflected in this value.public LocalSecondaryIndexDescription withIndexSizeBytes(Long indexSizeBytes)
Returns a reference to this object so that method calls can be chained together.
indexSizeBytes - The total size of the specified index, in bytes. DynamoDB updates this
value approximately every six hours. Recent changes might not be
reflected in this value.public Long getItemCount()
public void setItemCount(Long itemCount)
itemCount - The number of items in the specified index. DynamoDB updates this
value approximately every six hours. Recent changes might not be
reflected in this value.public LocalSecondaryIndexDescription withItemCount(Long itemCount)
Returns a reference to this object so that method calls can be chained together.
itemCount - The number of items in the specified index. DynamoDB updates this
value approximately every six hours. Recent changes might not be
reflected in this value.public String getIndexArn()
public void setIndexArn(String indexArn)
indexArn - The Amazon Resource Name (ARN) that uniquely identifies the index.public LocalSecondaryIndexDescription withIndexArn(String indexArn)
Returns a reference to this object so that method calls can be chained together.
indexArn - The Amazon Resource Name (ARN) that uniquely identifies the index.public String toString()
toString in class ObjectObject.toString()Copyright © 2016. All rights reserved.