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() |
Integer |
getMaxPageSize()
The maximum number of resources to be retrieved in a single page; used
for pagination purposes.
|
Integer |
getMaxResultSize()
The maximum number of resources to be retrieved in this query, including
all the resources in all pages to be retrieved.
|
Map<String,String> |
getNameMap() |
com.amazonaws.event.ProgressListener |
getProgressListener() |
String |
getProjectionExpression() |
Collection<QueryFilter> |
getQueryFilters() |
RangeKeyCondition |
getRangeKeyCondition() |
T |
getRequest()
Internal method.
|
com.amazonaws.metrics.RequestMetricCollector |
getRequestMetricCollector() |
String |
getReturnConsumedCapacity() |
String |
getSelect() |
Map<String,Object> |
getValueMap() |
boolean |
isConsistentRead() |
boolean |
isScanIndexForward() |
void |
setMaxPageSize(Integer value) |
void |
setMaxResultSize(int maxResultSize) |
void |
setMaxResultSize(Integer maxResultSize) |
void |
setProgressListener(com.amazonaws.event.ProgressListener progressListener) |
void |
setRequestMetricCollector(com.amazonaws.metrics.RequestMetricCollector requestMetricCollector) |
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 |
withExpressionSpec(QueryExpressionSpec xspec)
Convenient method to specify expressions (and the associated name map and
value map) via
QueryExpressionSpec . |
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
withValueMap(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 withValueMap(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(com.amazonaws.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
withValueMap(Map) . |
QuerySpec |
withQueryFilters(QueryFilter... queryFilters) |
QuerySpec |
withRangeKeyCondition(RangeKeyCondition rangeKeyCondition) |
QuerySpec |
withRequestMetricCollector(com.amazonaws.metrics.RequestMetricCollector requestMetricCollector) |
QuerySpec |
withReturnConsumedCapacity(ReturnConsumedCapacity returnConsumedCapacity) |
QuerySpec |
withScanIndexForward(boolean scanIndexForward) |
QuerySpec |
withSelect(Select select) |
QuerySpec |
withValueMap(Map<String,Object> valueMap)
Applicable only when an expression has been specified.
|
public KeyAttribute getHashKey()
public QuerySpec withHashKey(KeyAttribute hashKey)
public RangeKeyCondition getRangeKeyCondition()
public QuerySpec withRangeKeyCondition(RangeKeyCondition rangeKeyCondition)
public QuerySpec withKeyConditionExpression(String keyConditionExpression)
withNameMap(Map)
and withValueMap(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
withValueMap(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
withValueMap(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 withValueMap(Map<String,Object> valueMap)
public String getReturnConsumedCapacity()
public QuerySpec withReturnConsumedCapacity(ReturnConsumedCapacity returnConsumedCapacity)
public QuerySpec withScanIndexForward(boolean scanIndexForward)
public boolean isScanIndexForward()
public String getSelect()
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(com.amazonaws.event.ProgressListener progressListener)
public QuerySpec withRequestMetricCollector(com.amazonaws.metrics.RequestMetricCollector requestMetricCollector)
@Beta public QuerySpec withExpressionSpec(QueryExpressionSpec xspec)
QueryExpressionSpec
.public Integer getMaxResultSize()
public void setMaxResultSize(Integer maxResultSize)
public void setMaxResultSize(int maxResultSize)
public Integer getMaxPageSize()
public void setMaxPageSize(Integer value)
public T getRequest()
public com.amazonaws.event.ProgressListener getProgressListener()
public void setProgressListener(com.amazonaws.event.ProgressListener progressListener)
public com.amazonaws.metrics.RequestMetricCollector getRequestMetricCollector()
public void setRequestMetricCollector(com.amazonaws.metrics.RequestMetricCollector requestMetricCollector)
Copyright © 2015. All rights reserved.