@ThreadSafe public final class DynamoDbAsyncMappedTable<T> extends Object implements AsyncMappedTable<T>
| Modifier and Type | Method and Description |
|---|---|
DynamoDbAsyncClient |
dynamoDbClient() |
boolean |
equals(Object o) |
<R> SdkPublisher<R> |
execute(PaginatedTableOperation<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 primary index of the specific table this object is linked to.
|
<R> CompletableFuture<R> |
execute(TableOperation<T,?,?,R> operationToPerform)
Executes a command that is expected to return a single data item against the database with the context of the
primary index of the specific table this object is linked to.
|
int |
hashCode() |
DynamoDbAsyncMappedIndex<T> |
index(String indexName)
Returns a mapped index that can be used to execute commands against a secondary index belonging to the table
being mapped by this object.
|
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> CompletableFuture<R> execute(TableOperation<T,?,?,R> operationToPerform)
AsyncMappedTableexecute in interface AsyncMappedTable<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 primary index of the table.CompletableFuture that will return the result of the operation being executed. The
documentation on the operation itself should have more information.public <R> SdkPublisher<R> execute(PaginatedTableOperation<T,?,?,R> operationToPerform)
AsyncMappedTableexecute in interface AsyncMappedTable<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 primary index of the table.SdkPublisher that will publish successive pages of result data items to any subscriber with
demand for them.public MapperExtension mapperExtension()
MappedTableResourceMapperExtension associated with this mapped resource.mapperExtension in interface MappedTableResource<T>MapperExtension associated with this mapped resource.public TableSchema<T> tableSchema()
MappedTableResourceTableSchema object that this mapped table was built with.tableSchema in interface MappedTableResource<T>TableSchema object for this mapped table.public DynamoDbAsyncClient dynamoDbClient()
public String tableName()
MappedTableResourcetableName in interface MappedTableResource<T>public DynamoDbAsyncMappedIndex<T> index(String indexName)
AsyncMappedTableindex in interface AsyncMappedTable<T>indexName - The name of the secondary index to build the command interface for.AsyncMappedIndex object that can be used to execute database commands against.public Key keyFrom(T item)
MappedTableResourceKey object from a modelled item. This key can be used in query conditionals and get
operations to locate a specific record.keyFrom in interface MappedTableResource<T>item - The item to extract the key fields from.Copyright © 2020. All rights reserved.