public class QuerySpec extends Object
Constructor and Description |
---|
QuerySpec() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getAttributesToGet() |
String |
getConditionalOperator() |
Collection<KeyAttribute> |
getExclusiveStartKey() |
String |
getFilterExpression() |
KeyAttribute |
getHashKey() |
String |
getKeyConditionExpression() |
software.amazon.awssdk.event.ProgressListener |
getProgressListener() |
String |
getProjectionExpression() |
Collection<QueryFilter> |
getQueryFilters() |
RangeKeyCondition |
getRangeKeyCondition() |
T |
getRequest()
Internal method.
|
String |
getReturnConsumedCapacity() |
boolean |
isConsistentRead() |
boolean |
isScanIndexForward() |
Integer |
maxPageSize()
The maximum number of resources to be retrieved in a single page; used
for pagination purposes.
|
Integer |
maxResultSize()
The maximum number of resources to be retrieved in this query, including
all the resources in all pages to be retrieved.
|
Map<String,String> |
nameMap() |
String |
select() |
void |
setMaxPageSize(Integer value) |
void |
setMaxResultSize(int maxResultSize) |
void |
setMaxResultSize(Integer maxResultSize) |
void |
setProgressListener(software.amazon.awssdk.event.ProgressListener progressListener) |
void |
setRequest(T req) |
Map<String,Object> |
valueMap() |
QuerySpec |
valueMap(Map<String,Object> valueMap)
Applicable only when an expression has been specified.
|
QuerySpec |
withAttributesToGet(String... attributes) |
QuerySpec |
withConditionalOperator(ConditionalOperator op) |
QuerySpec |
withConsistentRead(boolean consistentRead) |
QuerySpec |
withExclusiveStartKey(KeyAttribute... exclusiveStartKey) |
QuerySpec |
withExclusiveStartKey(PrimaryKey exclusiveStartKey) |
QuerySpec |
withExclusiveStartKey(String hashKeyName,
Object hashKeyValue) |
QuerySpec |
withExclusiveStartKey(String hashKeyName,
Object hashKeyValue,
String rangeKeyName,
Object rangeKeyValue) |
QuerySpec |
withFilterExpression(String filterExpression)
When a filter expression is specified, the corresponding name-map and
value-map can optionally be specified via
withNameMap(Map) and
valueMap(Map) . |
QuerySpec |
withHashKey(KeyAttribute hashKey) |
QuerySpec |
withHashKey(String hashKeyName,
Object hashKeyValue) |
QuerySpec |
withKeyConditionExpression(String keyConditionExpression)
When a key condition expression is specified, the corresponding name-map
and value-map can optionally be specified via
withNameMap(Map)
and valueMap(Map) . |
QuerySpec |
withMaxPageSize(int maxPageSize) |
QuerySpec |
withMaxPageSize(Integer maxPageSize) |
QuerySpec |
withMaxResultSize(int maxResultSize) |
QuerySpec |
withMaxResultSize(Integer maxResultSize) |
QuerySpec |
withNameMap(Map<String,String> nameMap)
Applicable only when an expression has been specified.
|
QuerySpec |
withProgressListener(software.amazon.awssdk.event.ProgressListener progressListener) |
QuerySpec |
withProjectionExpression(String projectionExpression)
When a projection expression is specified, the corresponding name-map and
value-map can optionally be specified via
withNameMap(Map) and
valueMap(Map) . |
QuerySpec |
withQueryFilters(QueryFilter... queryFilters) |
QuerySpec |
withRangeKeyCondition(RangeKeyCondition rangeKeyCondition) |
QuerySpec |
withReturnConsumedCapacity(ReturnConsumedCapacity returnConsumedCapacity) |
QuerySpec |
withScanIndexForward(boolean scanIndexForward) |
QuerySpec |
withSelect(Select select) |
public KeyAttribute getHashKey()
public QuerySpec withHashKey(KeyAttribute hashKey)
public RangeKeyCondition getRangeKeyCondition()
public QuerySpec withRangeKeyCondition(RangeKeyCondition rangeKeyCondition)
public QuerySpec withKeyConditionExpression(String keyConditionExpression)
withNameMap(Map)
and valueMap(Map)
. (Note the hash key and range key
conditions must not be specified if a key condition expression has been
specified.)public String getKeyConditionExpression()
public QuerySpec withConditionalOperator(ConditionalOperator op)
public String getConditionalOperator()
public QuerySpec withConsistentRead(boolean consistentRead)
public boolean isConsistentRead()
public QuerySpec withQueryFilters(QueryFilter... queryFilters)
public Collection<QueryFilter> getQueryFilters()
public QuerySpec withFilterExpression(String filterExpression)
withNameMap(Map)
and
valueMap(Map)
. (Note query filters must not be specified if
a filter expression has been specified.)public String getFilterExpression()
public QuerySpec withProjectionExpression(String projectionExpression)
withNameMap(Map)
and
valueMap(Map)
. (Note attributes-to-get must not be specified
if a projection expression has been specified.)public String getProjectionExpression()
public QuerySpec withNameMap(Map<String,String> nameMap)
public QuerySpec valueMap(Map<String,Object> valueMap)
public String getReturnConsumedCapacity()
public QuerySpec withReturnConsumedCapacity(ReturnConsumedCapacity returnConsumedCapacity)
public QuerySpec withScanIndexForward(boolean scanIndexForward)
public boolean isScanIndexForward()
public String select()
public Collection<KeyAttribute> getExclusiveStartKey()
public QuerySpec withExclusiveStartKey(KeyAttribute... exclusiveStartKey)
public QuerySpec withExclusiveStartKey(PrimaryKey exclusiveStartKey)
public QuerySpec withExclusiveStartKey(String hashKeyName, Object hashKeyValue)
public QuerySpec withExclusiveStartKey(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue)
public QuerySpec withMaxResultSize(int maxResultSize)
public QuerySpec withMaxPageSize(int maxPageSize)
public QuerySpec withProgressListener(software.amazon.awssdk.event.ProgressListener progressListener)
public Integer maxResultSize()
public void setMaxResultSize(Integer maxResultSize)
public void setMaxResultSize(int maxResultSize)
public Integer maxPageSize()
public void setMaxPageSize(Integer value)
public void setRequest(T req)
public T getRequest()
public software.amazon.awssdk.event.ProgressListener getProgressListener()
public void setProgressListener(software.amazon.awssdk.event.ProgressListener progressListener)
Copyright © 2017. All rights reserved.