@ThreadSafe public class DynamoDbMappedIndex<T> extends Object implements MappedIndex<T>
| Modifier and Type | Method and Description |
|---|---|
DynamoDbClient |
dynamoDbClient() |
boolean |
equals(Object o) |
<R> R |
execute(IndexOperation<T,?,?,R> operationToPerform)
Executes a command that is expected to return a single data item against the database with the context of the
specific table and secondary index this object is linked to.
|
<R> SdkIterable<R> |
execute(PaginatedIndexOperation<T,?,?,R> operationToPerform)
Executes a command that is expected to return a paginated list of data items against the database with the
context of the specific table and secondary index this object is linked to.
|
int |
hashCode() |
String |
indexName()
Gets the physical secondary index name that operations performed by this object will be executed against.
|
Key |
keyFrom(T item)
Creates a
Key object from a modelled item. |
MapperExtension |
mapperExtension()
Gets the
MapperExtension associated with this mapped resource. |
String |
tableName()
Gets the physical table name that operations performed by this object will be executed against.
|
TableSchema<T> |
tableSchema()
Gets the
TableSchema object that this mapped table was built with. |
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 <R> SdkIterable<R> execute(PaginatedIndexOperation<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.SdkIterable that will return successive pages of result data items as it is iterated over.public MapperExtension mapperExtension()
MappedIndexMapperExtension associated with this mapped resource.mapperExtension in interface MappedIndex<T>MapperExtension associated with this mapped resource.public TableSchema<T> tableSchema()
MappedIndexTableSchema object that this mapped table was built with.tableSchema in interface MappedIndex<T>TableSchema object for this mapped table.public DynamoDbClient dynamoDbClient()
public String tableName()
MappedIndextableName in interface MappedIndex<T>public String indexName()
MappedIndexindexName 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 © 2020. All rights reserved.