T - The type of the modelled object.public interface MappedIndex<T>
DynamoDbMappedTable interface as all commands that can be made against a secondary index can also be made
against the primary index.
Typically an implementation for this interface can be obtained from a MappedTable which in turn can be
obtained from a MappedDatabase:
mappedIndex = mappedDatabase.table(tableSchema).index("gsi_1");| Modifier and Type | Method and Description |
|---|---|
<R> R |
execute(TableOperation<T,?,?,R> operationToPerform)
Executes a command against the database with the context of the specific secondary index this object is linked
to.
|
MapperExtension |
getMapperExtension()
Gets the
MapperExtension associated with this mapped resource. |
OperationContext |
getOperationContext()
Gets the
OperationContext that can be used to execute commands against. |
TableSchema<T> |
getTableSchema()
Gets the
TableSchema object that this mapped table was built with. |
Key |
keyFrom(T item)
Creates a
Key object from a modelled item. |
<R> R execute(TableOperation<T,?,?,R> operationToPerform)
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 index.MapperExtension getMapperExtension()
MapperExtension associated with this mapped resource.MapperExtension associated with this mapped resource.OperationContext getOperationContext()
OperationContext that can be used to execute commands against.OperationContext associated with this object.TableSchema<T> getTableSchema()
TableSchema object that this mapped table was built with.TableSchema object for this mapped table.Key keyFrom(T item)
Key object from a modelled item. This key can be used in query conditionals and get
operations to locate a specific record.item - The item to extract the key fields from.Copyright © 2019. All rights reserved.