public class BatchGetItem extends Object implements DatabaseOperation<BatchGetItemRequest,BatchGetItemIterable,Iterable<BatchGetItem.ResultsPage>>
Modifier and Type | Class and Description |
---|---|
static class |
BatchGetItem.Builder |
static class |
BatchGetItem.ResultsPage |
Modifier and Type | Method and Description |
---|---|
static BatchGetItem.Builder |
builder() |
boolean |
equals(Object o) |
BatchGetItemRequest |
generateRequest(MapperExtension mapperExtension)
This method generates the request that needs to be sent to a low level
DynamoDbClient . |
Collection<ReadBatch> |
getReadBatches() |
Function<BatchGetItemRequest,BatchGetItemIterable> |
getServiceCall(DynamoDbClient dynamoDbClient)
Provides a function for making the low level SDK call to DynamoDb.
|
int |
hashCode() |
static BatchGetItem |
of(Collection<ReadBatch> readBatches) |
static BatchGetItem |
of(ReadBatch... readBatches) |
BatchGetItem.Builder |
toBuilder() |
Iterable<BatchGetItem.ResultsPage> |
transformResponse(BatchGetItemIterable response,
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, wait
execute
public static BatchGetItem of(Collection<ReadBatch> readBatches)
public static BatchGetItem of(ReadBatch... readBatches)
public static BatchGetItem.Builder builder()
public BatchGetItem.Builder toBuilder()
public BatchGetItemRequest generateRequest(MapperExtension mapperExtension)
DatabaseOperation
DynamoDbClient
.generateRequest
in interface DatabaseOperation<BatchGetItemRequest,BatchGetItemIterable,Iterable<BatchGetItem.ResultsPage>>
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 Iterable<BatchGetItem.ResultsPage> transformResponse(BatchGetItemIterable response, MapperExtension mapperExtension)
DatabaseOperation
transformResponse
in interface DatabaseOperation<BatchGetItemRequest,BatchGetItemIterable,Iterable<BatchGetItem.ResultsPage>>
response
- The response object returned by the DynamoDb call for this operation.mapperExtension
- A MapperExtension
that may modify the result of this operation. A null value
here will result in no modifications.public Function<BatchGetItemRequest,BatchGetItemIterable> getServiceCall(DynamoDbClient dynamoDbClient)
DatabaseOperation
getServiceCall
in interface DatabaseOperation<BatchGetItemRequest,BatchGetItemIterable,Iterable<BatchGetItem.ResultsPage>>
dynamoDbClient
- A low level DynamoDbClient
to make the call against.public Collection<ReadBatch> getReadBatches()
Copyright © 2019. All rights reserved.