Class ScanOperation<T>
- java.lang.Object
-
- software.amazon.awssdk.enhanced.dynamodb.internal.operations.ScanOperation<T>
-
- All Implemented Interfaces:
PaginatedIndexOperation<T,ScanRequest,ScanResponse>,PaginatedOperation<T,ScanRequest,ScanResponse>,PaginatedTableOperation<T,ScanRequest,ScanResponse>
public class ScanOperation<T> extends Object implements PaginatedTableOperation<T,ScanRequest,ScanResponse>, PaginatedIndexOperation<T,ScanRequest,ScanResponse>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)ScanRequestgenerateRequest(TableSchema<T> tableSchema, OperationContext operationContext, DynamoDbEnhancedClientExtension extension)This method generates the request that needs to be sent to a low levelDynamoDbClient.OperationNameoperationName()The type, or name, of the operation.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.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.enhanced.dynamodb.internal.operations.PaginatedIndexOperation
executeOnSecondaryIndex, executeOnSecondaryIndexAsync
-
Methods inherited from interface software.amazon.awssdk.enhanced.dynamodb.internal.operations.PaginatedOperation
execute, executeAsync
-
Methods inherited from interface software.amazon.awssdk.enhanced.dynamodb.internal.operations.PaginatedTableOperation
executeOnPrimaryIndex, executeOnPrimaryIndexAsync
-
-
-
-
Method Detail
-
create
public static <T> ScanOperation<T> create(ScanEnhancedRequest request)
-
operationName
public OperationName operationName()
Description copied from interface:PaginatedTableOperationThe type, or name, of the operation.- Specified by:
operationNamein interfacePaginatedTableOperation<T,ScanRequest,ScanResponse>
-
generateRequest
public ScanRequest generateRequest(TableSchema<T> tableSchema, OperationContext operationContext, DynamoDbEnhancedClientExtension extension)
Description copied from interface:PaginatedOperationThis method generates the request that needs to be sent to a low levelDynamoDbClient.- Specified by:
generateRequestin interfacePaginatedOperation<T,ScanRequest,ScanResponse>- Parameters:
tableSchema- ATableSchemathat maps the table to a modelled object.operationContext- An object containing the context, or target, of the command execution.extension- ADynamoDbEnhancedClientExtensionthat may modify the request of this operation. A null value here will result in no modifications.- Returns:
- A request that can be used as an argument to a
DynamoDbClientcall to perform the operation.
-
transformResponse
public Page<T> transformResponse(ScanResponse response, TableSchema<T> tableSchema, OperationContext context, DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension)
Description copied from interface:PaginatedOperationTakes the response object returned by the actual DynamoDb call and maps it into a higher level abstracted result object.- Specified by:
transformResponsein interfacePaginatedOperation<T,ScanRequest,ScanResponse>- Parameters:
response- The response object returned by the DynamoDb call for this operation.tableSchema- ATableSchemathat maps the table to a modelled object.context- An object containing the context, or target, of the command execution.dynamoDbEnhancedClientExtension- ADynamoDbEnhancedClientExtensionthat may modify the result of this operation. A null value here will result in no modifications.- Returns:
- A high level result object as specified by the implementation of this operation.
-
serviceCall
public Function<ScanRequest,SdkIterable<ScanResponse>> serviceCall(DynamoDbClient dynamoDbClient)
Description copied from interface:PaginatedOperationProvides a function for making the low level synchronous SDK call to DynamoDb.- Specified by:
serviceCallin interfacePaginatedOperation<T,ScanRequest,ScanResponse>- Parameters:
dynamoDbClient- A low levelDynamoDbClientto make the call against.- Returns:
- A function that calls a paginated DynamoDb operation with a provided request object and returns the response object.
-
asyncServiceCall
public Function<ScanRequest,SdkPublisher<ScanResponse>> asyncServiceCall(DynamoDbAsyncClient dynamoDbAsyncClient)
Description copied from interface:PaginatedOperationProvides a function for making the low level non-blocking asynchronous SDK call to DynamoDb.- Specified by:
asyncServiceCallin interfacePaginatedOperation<T,ScanRequest,ScanResponse>- Parameters:
dynamoDbAsyncClient- A low levelDynamoDbAsyncClientto make the call against.- Returns:
- A function that calls a paginated DynamoDb operation with a provided request object and returns the response object.
-
-