public class QueryOperation<T> extends Object implements PaginatedTableOperation<T,QueryRequest,QueryResponse>, PaginatedIndexOperation<T,QueryRequest,QueryResponse>
| Modifier and Type | Method and Description |
|---|---|
Function<QueryRequest,SdkPublisher<QueryResponse>> |
asyncServiceCall(DynamoDbAsyncClient dynamoDbAsyncClient)
Provides a function for making the low level non-blocking asynchronous SDK call to DynamoDb.
|
static <T> QueryOperation<T> |
create(QueryEnhancedRequest request) |
QueryRequest |
generateRequest(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension)
This method generates the request that needs to be sent to a low level
DynamoDbClient. |
Function<QueryRequest,SdkIterable<QueryResponse>> |
serviceCall(DynamoDbClient dynamoDbClient)
Provides a function for making the low level synchronous SDK call to DynamoDb.
|
Page<T> |
transformResponse(QueryResponse response,
TableSchema<T> tableSchema,
OperationContext context,
DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension)
Takes the response object returned by the actual DynamoDb call and maps it into a higher level abstracted
result object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteOnPrimaryIndex, executeOnPrimaryIndexAsyncexecuteOnSecondaryIndex, executeOnSecondaryIndexAsyncexecute, executeAsyncpublic static <T> QueryOperation<T> create(QueryEnhancedRequest request)
public QueryRequest generateRequest(TableSchema<T> tableSchema, OperationContext operationContext, DynamoDbEnhancedClientExtension extension)
PaginatedOperationDynamoDbClient.generateRequest in interface PaginatedOperation<T,QueryRequest,QueryResponse>tableSchema - A TableSchema that maps the table to a modelled object.operationContext - An object containing the context, or target, of the command execution.extension - A DynamoDbEnhancedClientExtension that may modify the request of this operation. A null
value here will result in no modifications.DynamoDbClient call to perform the operation.public Function<QueryRequest,SdkIterable<QueryResponse>> serviceCall(DynamoDbClient dynamoDbClient)
PaginatedOperationserviceCall in interface PaginatedOperation<T,QueryRequest,QueryResponse>dynamoDbClient - A low level DynamoDbClient to make the call against.public Function<QueryRequest,SdkPublisher<QueryResponse>> asyncServiceCall(DynamoDbAsyncClient dynamoDbAsyncClient)
PaginatedOperationasyncServiceCall in interface PaginatedOperation<T,QueryRequest,QueryResponse>dynamoDbAsyncClient - A low level DynamoDbAsyncClient to make the call against.public Page<T> transformResponse(QueryResponse response, TableSchema<T> tableSchema, OperationContext context, DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension)
PaginatedOperationtransformResponse in interface PaginatedOperation<T,QueryRequest,QueryResponse>response - The response object returned by the DynamoDb call for this operation.tableSchema - A TableSchema that maps the table to a modelled object.context - An object containing the context, or target, of the command execution.dynamoDbEnhancedClientExtension - A DynamoDbEnhancedClientExtension that may modify the result of
this operation. A null value here will result in no modifications.Copyright © 2020. All rights reserved.