public class ScanSpec extends Object
Constructor and Description |
---|
ScanSpec() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getAttributesToGet() |
String |
getConditionalOperator()
AND|OR that applies to all the conditions in the ScanFilters.
|
Collection<KeyAttribute> |
getExclusiveStartKey() |
String |
getFilterExpression()
Any query filters will be ignored if a filter expression has been
specified.
|
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() |
T |
getRequest()
Internal method.
|
com.amazonaws.metrics.RequestMetricCollector |
getRequestMetricCollector() |
String |
getReturnConsumedCapacity() |
Collection<ScanFilter> |
getScanFilters() |
Integer |
getSegment() |
String |
getSelect()
Specifies the attributes to be returned.
|
Integer |
getTotalSegments() |
Map<String,Object> |
getValueMap() |
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) |
ScanSpec |
withAttributesToGet(String... attributes) |
ScanSpec |
withConditionalOperator(ConditionalOperator op) |
ScanSpec |
withExclusiveStartKey(KeyAttribute... exclusiveStartKey) |
ScanSpec |
withExclusiveStartKey(PrimaryKey exclusiveStartKey) |
ScanSpec |
withExclusiveStartKey(String hashKeyName,
Object hashKeyValue) |
ScanSpec |
withExclusiveStartKey(String hashKeyName,
Object hashKeyValue,
String rangeKeyName,
Object rangeKeyValue) |
ScanSpec |
withFilterExpression(String expression) |
ScanSpec |
withMaxPageSize(int maxPageSize) |
ScanSpec |
withMaxPageSize(Integer maxPageSize) |
ScanSpec |
withMaxResultSize(int maxResultSize) |
ScanSpec |
withMaxResultSize(Integer maxResultSize) |
ScanSpec |
withNameMap(Map<String,String> nameMap)
Applicable only when an expression has been specified.
|
ScanSpec |
withProgressListener(com.amazonaws.event.ProgressListener progressListener) |
ScanSpec |
withProjectionExpression(String expression) |
ScanSpec |
withRequestMetricCollector(com.amazonaws.metrics.RequestMetricCollector requestMetricCollector) |
ScanSpec |
withReturnConsumedCapacity(ReturnConsumedCapacity capacity) |
ScanSpec |
withScanFilters(ScanFilter... scanFilters) |
ScanSpec |
withSegment(Integer segment) |
ScanSpec |
withSelect(Select select) |
ScanSpec |
withTotalSegments(Integer totalSegments) |
ScanSpec |
withValueMap(Map<String,Object> valueMap)
Applicable only when an expression has been specified.
|
public Collection<ScanFilter> getScanFilters()
public ScanSpec withScanFilters(ScanFilter... scanFilters)
public String getConditionalOperator()
public ScanSpec withConditionalOperator(ConditionalOperator op)
public String getFilterExpression()
withNameMap(Map)
and withValueMap(Map)
.public String getProjectionExpression()
public ScanSpec withNameMap(Map<String,String> nameMap)
public ScanSpec withValueMap(Map<String,Object> valueMap)
public String getReturnConsumedCapacity()
public ScanSpec withReturnConsumedCapacity(ReturnConsumedCapacity capacity)
public String getSelect()
public Integer getSegment()
public Integer getTotalSegments()
public Collection<KeyAttribute> getExclusiveStartKey()
public ScanSpec withExclusiveStartKey(KeyAttribute... exclusiveStartKey)
public ScanSpec withExclusiveStartKey(PrimaryKey exclusiveStartKey)
public ScanSpec withExclusiveStartKey(String hashKeyName, Object hashKeyValue)
public ScanSpec withExclusiveStartKey(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue)
public ScanSpec withMaxResultSize(int maxResultSize)
public ScanSpec withMaxPageSize(int maxPageSize)
public ScanSpec withProgressListener(com.amazonaws.event.ProgressListener progressListener)
public ScanSpec withRequestMetricCollector(com.amazonaws.metrics.RequestMetricCollector requestMetricCollector)
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.