ItemT
- The modelled object that this table maps records to.RequestT
- The type of the request object for the DynamoDb call in the low level DynamoDbClient
.ResponseT
- The type of the response object for the DynamoDb call in the low level DynamoDbClient
.ResultT
- The type of the mapped result object that will be returned by the execution of this operation.public interface TableOperation<ItemT,RequestT,ResponseT,ResultT> extends CommonOperation<ItemT,RequestT,ResponseT,ResultT>
MappedTable
:
mappedDatabase.table(tableSchema).execute(tableOperation); // For primary index
A concrete implementation of this interface should also implement IndexOperation
with the same types if
the operation supports being executed against both the primary index and secondary indices.Modifier and Type | Method and Description |
---|---|
default ResultT |
executeOnPrimaryIndex(TableSchema<ItemT> tableSchema,
String tableName,
MapperExtension mapperExtension,
DynamoDbClient dynamoDbClient)
Default implementation of a complete execution of this operation against the primary index.
|
execute, generateRequest, getServiceCall, transformResponse
default ResultT executeOnPrimaryIndex(TableSchema<ItemT> tableSchema, String tableName, MapperExtension mapperExtension, DynamoDbClient dynamoDbClient)
CommonOperation
interface to
perform the operation.tableSchema
- A TableSchema
that maps the table to a modelled object.tableName
- The physical name of the table to execute the operation against.dynamoDbClient
- A DynamoDbClient
to make the call against.mapperExtension
- A MapperExtension
that may modify the request or result of this operation. A
null value here will result in no modifications.Copyright © 2019. All rights reserved.