|
Did this page help you?Yes No Tell us about it... |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.dynamodbv2.model.LocalSecondaryIndex
public class LocalSecondaryIndex
Represents a local secondary index.
Constructor Summary | |
---|---|
LocalSecondaryIndex()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getIndexName()
Represents the name of the secondary index. |
List<KeySchemaElement> |
getKeySchema()
Represents the complete index key schema, which consists of one or more pairs of attribute names and key types ( HASH or
RANGE ). |
Projection |
getProjection()
Represents attributes that are copied (projected) from the table into the index. |
int |
hashCode()
|
void |
setIndexName(String indexName)
Represents the name of the secondary index. |
void |
setKeySchema(Collection<KeySchemaElement> keySchema)
Represents the complete index key schema, which consists of one or more pairs of attribute names and key types ( HASH or
RANGE ). |
void |
setProjection(Projection projection)
Represents attributes that are copied (projected) from the table into the index. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
LocalSecondaryIndex |
withIndexName(String indexName)
Represents the name of the secondary index. |
LocalSecondaryIndex |
withKeySchema(Collection<KeySchemaElement> keySchema)
Represents the complete index key schema, which consists of one or more pairs of attribute names and key types ( HASH or
RANGE ). |
LocalSecondaryIndex |
withKeySchema(KeySchemaElement... keySchema)
Represents the complete index key schema, which consists of one or more pairs of attribute names and key types ( HASH or
RANGE ). |
LocalSecondaryIndex |
withProjection(Projection projection)
Represents attributes that are copied (projected) from the table into the index. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LocalSecondaryIndex()
Method Detail |
---|
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 secondary index. The name must be unique
among all other indexes on this table.public LocalSecondaryIndex 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 secondary index. The name must be unique
among all other indexes on this table.
public List<KeySchemaElement> getKeySchema()
HASH
or
RANGE
).
Constraints:
Length: 1 - 2
HASH
or
RANGE
).public void setKeySchema(Collection<KeySchemaElement> keySchema)
HASH
or
RANGE
).
Constraints:
Length: 1 - 2
keySchema
- Represents the complete index key schema, which consists of one or
more pairs of attribute names and key types (HASH
or
RANGE
).public LocalSecondaryIndex withKeySchema(KeySchemaElement... keySchema)
HASH
or
RANGE
).
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 2
keySchema
- Represents the complete index key schema, which consists of one or
more pairs of attribute names and key types (HASH
or
RANGE
).
public LocalSecondaryIndex withKeySchema(Collection<KeySchemaElement> keySchema)
HASH
or
RANGE
).
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 2
keySchema
- Represents the complete index key schema, which consists of one or
more pairs of attribute names and key types (HASH
or
RANGE
).
public Projection getProjection()
public void setProjection(Projection projection)
projection
- Represents attributes that are copied (projected) from the table into
the index. These are in addition to the primary key attributes and
index key attributes, which are automatically projected.public LocalSecondaryIndex 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
the 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 int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |