T - The type of the modelled object.public interface AsyncMappedIndex<T>
| Modifier and Type | Method and Description |
|---|---|
<R> CompletableFuture<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> SdkPublisher<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.
|
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. |
<R> CompletableFuture<R> execute(IndexOperation<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 secondary index.CompletableFuture of the result of the operation being executed. The documentation on the
operation itself should have more information.<R> SdkPublisher<R> execute(PaginatedIndexOperation<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 secondary index.SdkPublisher that will publish successive pages of result data items to any subscriber with
demand for them.MapperExtension mapperExtension()
MapperExtension associated with this mapped resource.MapperExtension associated with this mapped resource.TableSchema<T> tableSchema()
TableSchema object that this mapped table was built with.TableSchema object for this mapped table.String tableName()
String indexName()
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 © 2020. All rights reserved.