public class Scan<T> extends Object implements PaginatedTableOperation<T,ScanRequest,ScanResponse,Page<T>>, PaginatedIndexOperation<T,ScanRequest,ScanResponse,Page<T>>
| Modifier and Type | Class and Description |
|---|---|
static class |
Scan.Builder |
| 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 Scan.Builder |
builder() |
Boolean |
consistentRead() |
static <T> Scan<T> |
create() |
boolean |
equals(Object o) |
Map<String,AttributeValue> |
exclusiveStartKey() |
Expression |
filterExpression() |
ScanRequest |
generateRequest(TableSchema<T> tableSchema,
OperationContext operationContext,
MapperExtension mapperExtension)
This method generates the request that needs to be sent to a low level
DynamoDbClient. |
int |
hashCode() |
Integer |
limit() |
Function<ScanRequest,SdkIterable<ScanResponse>> |
serviceCall(DynamoDbClient dynamoDbClient)
Provides a function for making the low level synchronous SDK call to DynamoDb.
|
Scan.Builder |
toBuilder() |
Page<T> |
transformResponse(ScanResponse response,
TableSchema<T> tableSchema,
OperationContext context,
MapperExtension mapperExtension)
Takes the response object returned by the actual DynamoDb call and maps it into a higher level abstracted
result object.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitexecuteOnPrimaryIndex, executeOnPrimaryIndexAsyncexecuteOnSecondaryIndex, executeOnSecondaryIndexAsyncexecute, executeAsyncpublic static <T> Scan<T> create()
public static Scan.Builder builder()
public Scan.Builder toBuilder()
public ScanRequest generateRequest(TableSchema<T> tableSchema, OperationContext operationContext, MapperExtension mapperExtension)
PaginatedOperationDynamoDbClient.generateRequest in interface PaginatedOperation<T,ScanRequest,ScanResponse,Page<T>>tableSchema - A TableSchema that maps the table to a modelled object.operationContext - An object containing the context, or target, of the command execution.mapperExtension - A MapperExtension 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, MapperExtension mapperExtension)
PaginatedOperationtransformResponse in interface PaginatedOperation<T,ScanRequest,ScanResponse,Page<T>>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.mapperExtension - A MapperExtension 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)
PaginatedOperationserviceCall in interface PaginatedOperation<T,ScanRequest,ScanResponse,Page<T>>dynamoDbClient - A low level DynamoDbClient to make the call against.public Function<ScanRequest,SdkPublisher<ScanResponse>> asyncServiceCall(DynamoDbAsyncClient dynamoDbAsyncClient)
PaginatedOperationasyncServiceCall in interface PaginatedOperation<T,ScanRequest,ScanResponse,Page<T>>dynamoDbAsyncClient - A low level DynamoDbAsyncClient to make the call against.public Map<String,AttributeValue> exclusiveStartKey()
public Integer limit()
public Boolean consistentRead()
public Expression filterExpression()
Copyright © 2020. All rights reserved.