@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LocalSecondaryIndex extends Object implements Serializable, Cloneable, StructuredPojo
Represents the properties of a local secondary index.
Constructor and Description |
---|
LocalSecondaryIndex() |
Modifier and Type | Method and Description |
---|---|
LocalSecondaryIndex |
clone() |
boolean |
equals(Object obj) |
String |
getIndexName()
The name of the local secondary 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 the local secondary index.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setIndexName(String indexName)
The name of the local secondary 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 the local secondary index.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
LocalSecondaryIndex |
withIndexName(String indexName)
The name of the local secondary index.
|
LocalSecondaryIndex |
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:
|
LocalSecondaryIndex |
withKeySchema(KeySchemaElement... keySchema)
The complete key schema for the local secondary index, consisting of one or more pairs of attribute names and key
types:
|
LocalSecondaryIndex |
withProjection(Projection projection)
Represents attributes that are copied (projected) from the table into the local secondary index.
|
public void setIndexName(String indexName)
The name of the local secondary index. The name must be unique among all other indexes on this table.
indexName
- The name of the local secondary index. The name must be unique among all other indexes on this table.public String getIndexName()
The name of the local secondary index. The name must be unique among all other indexes on this table.
public LocalSecondaryIndex withIndexName(String indexName)
The name of the local secondary index. The name must be unique among all other indexes on this table.
indexName
- The name of the local secondary index. The name must be unique among all other indexes on this table.public List<KeySchemaElement> getKeySchema()
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.
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)
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.
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 LocalSecondaryIndex withKeySchema(KeySchemaElement... 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.
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 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 LocalSecondaryIndex 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:
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 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 void setProjection(Projection projection)
Represents attributes that are copied (projected) from the table into the local 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 local secondary index. These are
in addition to the primary key attributes and index key attributes, which are automatically projected.public Projection getProjection()
Represents attributes that are copied (projected) from the table into the local secondary index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.
public LocalSecondaryIndex withProjection(Projection projection)
Represents attributes that are copied (projected) from the table into the local 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 local secondary index. These are
in addition to the primary key attributes and index key attributes, which are automatically projected.public String toString()
toString
in class Object
Object.toString()
public LocalSecondaryIndex clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.