public class ScanOperation<T> extends Object implements PaginatedTableOperation<T,ScanRequest,ScanResponse>, PaginatedIndexOperation<T,ScanRequest,ScanResponse>
Modifier and Type | Method and Description |
---|---|
Function<ScanRequest,SdkPublisher<ScanResponse>> |
asyncServiceCall(DynamoDbAsyncClient dynamoDbAsyncClient)
Provides a function for making the low level non-blocking asynchronous SDK call to DynamoDb.
|
static <T> ScanOperation<T> |
create(ScanEnhancedRequest request) |
ScanRequest |
generateRequest(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension)
This method generates the request that needs to be sent to a low level
DynamoDbClient . |
Function<ScanRequest,SdkIterable<ScanResponse>> |
serviceCall(DynamoDbClient dynamoDbClient)
Provides a function for making the low level synchronous SDK call to DynamoDb.
|
Page<T> |
transformResponse(ScanResponse 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, wait
executeOnPrimaryIndex, executeOnPrimaryIndexAsync
executeOnSecondaryIndex, executeOnSecondaryIndexAsync
execute, executeAsync
public static <T> ScanOperation<T> create(ScanEnhancedRequest request)
public ScanRequest generateRequest(TableSchema<T> tableSchema, OperationContext operationContext, DynamoDbEnhancedClientExtension extension)
PaginatedOperation
DynamoDbClient
.generateRequest
in interface PaginatedOperation<T,ScanRequest,ScanResponse>
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 Page<T> transformResponse(ScanResponse response, TableSchema<T> tableSchema, OperationContext context, DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension)
PaginatedOperation
transformResponse
in interface PaginatedOperation<T,ScanRequest,ScanResponse>
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.public Function<ScanRequest,SdkIterable<ScanResponse>> serviceCall(DynamoDbClient dynamoDbClient)
PaginatedOperation
serviceCall
in interface PaginatedOperation<T,ScanRequest,ScanResponse>
dynamoDbClient
- A low level DynamoDbClient
to make the call against.public Function<ScanRequest,SdkPublisher<ScanResponse>> asyncServiceCall(DynamoDbAsyncClient dynamoDbAsyncClient)
PaginatedOperation
asyncServiceCall
in interface PaginatedOperation<T,ScanRequest,ScanResponse>
dynamoDbAsyncClient
- A low level DynamoDbAsyncClient
to make the call against.Copyright © 2021. All rights reserved.