public class Query<T> extends Object implements TableOperation<T,QueryRequest,QueryIterable,Iterable<Page<T>>>, IndexOperation<T,QueryRequest,QueryIterable,Iterable<Page<T>>>
| Modifier and Type | Class and Description |
|---|---|
static class |
Query.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Query.Builder |
builder() |
boolean |
equals(Object o) |
QueryRequest |
generateRequest(TableSchema<T> tableSchema,
OperationContext operationContext,
MapperExtension mapperExtension)
This method generates the request that needs to be sent to a low level
DynamoDbClient. |
Boolean |
getConsistentRead() |
Map<String,AttributeValue> |
getExclusiveStartKey() |
Expression |
getFilterExpression() |
Integer |
getLimit() |
QueryConditional |
getQueryConditional() |
Boolean |
getScanIndexForward() |
Function<QueryRequest,QueryIterable> |
getServiceCall(DynamoDbClient dynamoDbClient)
Provides a function for making the low level SDK call to DynamoDb.
|
int |
hashCode() |
static <T> Query<T> |
of(QueryConditional queryConditional) |
Query.Builder |
toBuilder() |
Iterable<Page<T>> |
transformResponse(QueryIterable response,
TableSchema<T> tableSchema,
OperationContext operationContext,
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, waitexecuteOnPrimaryIndexexecuteOnSecondaryIndexexecutepublic static <T> Query<T> of(QueryConditional queryConditional)
public static Query.Builder builder()
public Query.Builder toBuilder()
public QueryRequest generateRequest(TableSchema<T> tableSchema, OperationContext operationContext, MapperExtension mapperExtension)
CommonOperationDynamoDbClient.generateRequest in interface CommonOperation<T,QueryRequest,QueryIterable,Iterable<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 Iterable<Page<T>> transformResponse(QueryIterable response, TableSchema<T> tableSchema, OperationContext operationContext, MapperExtension mapperExtension)
CommonOperationtransformResponse in interface CommonOperation<T,QueryRequest,QueryIterable,Iterable<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.operationContext - 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<QueryRequest,QueryIterable> getServiceCall(DynamoDbClient dynamoDbClient)
CommonOperationgetServiceCall in interface CommonOperation<T,QueryRequest,QueryIterable,Iterable<Page<T>>>dynamoDbClient - A low level DynamoDbClient to make the call against.public QueryConditional getQueryConditional()
public Map<String,AttributeValue> getExclusiveStartKey()
public Boolean getScanIndexForward()
public Integer getLimit()
public Boolean getConsistentRead()
public Expression getFilterExpression()
Copyright © 2019. All rights reserved.