@ThreadSafe public class DynamoDbMappedIndex<T> extends Object implements MappedIndex<T>
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
<R> R |
execute(IndexOperation<T,?,?,R> operationToPerform)
Executes a command against the database with the context of the specific table and secondary index this object
is linked to.
|
DynamoDbClient |
getDynamoDbClient() |
String |
getIndexName()
Gets the physical secondary index name that operations performed by this object will be executed against.
|
MapperExtension |
getMapperExtension()
Gets the
MapperExtension associated with this mapped resource. |
String |
getTableName()
Gets the physical table name that operations performed by this object will be executed against.
|
TableSchema<T> |
getTableSchema()
Gets the
TableSchema object that this mapped table was built with. |
int |
hashCode() |
Key |
keyFrom(T item)
Creates a
Key object from a modelled item. |
public <R> R execute(IndexOperation<T,?,?,R> operationToPerform)
MappedIndexexecute in interface MappedIndex<T>R - The expected return type from the operation. This is typically inferred by the compiler.operationToPerform - The operation to be performed in the context of the secondary index.public MapperExtension getMapperExtension()
MappedIndexMapperExtension associated with this mapped resource.getMapperExtension in interface MappedIndex<T>MapperExtension associated with this mapped resource.public TableSchema<T> getTableSchema()
MappedIndexTableSchema object that this mapped table was built with.getTableSchema in interface MappedIndex<T>TableSchema object for this mapped table.public DynamoDbClient getDynamoDbClient()
public String getTableName()
MappedIndexgetTableName in interface MappedIndex<T>public String getIndexName()
MappedIndexgetIndexName in interface MappedIndex<T>public Key keyFrom(T item)
MappedIndexKey object from a modelled item. This key can be used in query conditionals and get
operations to locate a specific record.keyFrom in interface MappedIndex<T>item - The item to extract the key fields from.Copyright © 2019. All rights reserved.