public class ScanOperationConfig extends Object
Constructor and Description |
---|
ScanOperationConfig() |
Modifier and Type | Method and Description |
---|---|
protected List<String> |
getAttributesToGet() |
protected ConditionalOperator |
getConditionalOperator() |
protected ScanFilter |
getFilter() |
protected Expression |
getFilterExpression() |
protected String |
getIndexName() |
protected int |
getLimit() |
protected int |
getSegment() |
protected Select |
getSelect() |
protected int |
getTotalSegments() |
protected boolean |
isCollectResults() |
protected boolean |
isConsistentRead() |
ScanOperationConfig |
withAttributesToGet(List<String> attributesToGet)
Set attributes to get.
|
ScanOperationConfig |
withCollectResults(boolean collectResults)
Whether to collect GetNextSet and GetRemaining results in Matches
property.
|
ScanOperationConfig |
withConditionalOperator(ConditionalOperator conditionalOperator)
A logical operator to apply to the conditions in the Filter property: AND
- If all of the conditions evaluate to true, then the entire filter
evaluates to true.
|
ScanOperationConfig |
withConsistentRead(boolean consistentRead)
Set Consistent Read.
|
ScanOperationConfig |
withFilter(ScanFilter filter)
Set Query Filter.
|
ScanOperationConfig |
withFilterExpression(Expression filterExpression)
Set filter expression.
|
ScanOperationConfig |
withIndexName(String indexName)
Name of the index to query.
|
ScanOperationConfig |
withLimit(int limit)
The pagination size.
|
ScanOperationConfig |
withSegment(int segment)
For parallel Scan requests, Segment identifies an
individual segment to be scanned by an application "worker" (such as a
thread or a process).
|
ScanOperationConfig |
withSelect(Select select)
Attributes to select.
|
ScanOperationConfig |
withTotalSegments(int totalSegments)
For parallel Scan requests, TotalSegmentsrepresents the
total number of segments for a table that is being scanned.
|
protected boolean isConsistentRead()
protected int getLimit()
protected Expression getFilterExpression()
protected ScanFilter getFilter()
protected String getIndexName()
protected Select getSelect()
protected int getTotalSegments()
protected int getSegment()
protected boolean isCollectResults()
protected ConditionalOperator getConditionalOperator()
public ScanOperationConfig withConsistentRead(boolean consistentRead)
consistentRead
- flag indicating if reads are consistent.ScanOperationConfig
.public ScanOperationConfig withAttributesToGet(List<String> attributesToGet)
attributesToGet
- the list of attributes to get.ScanOperationConfig
.public ScanOperationConfig withLimit(int limit)
limit
- the pagination limit.ScanOperationConfig
.public ScanOperationConfig withFilterExpression(Expression filterExpression)
filterExpression
- the filter expression. see Expression
.ScanOperationConfig
.public ScanOperationConfig withFilter(ScanFilter filter)
filter
- the QueryFilter expression. see QueryFilter
.ScanOperationConfig
.public ScanOperationConfig withIndexName(String indexName)
indexName
- the index name.ScanOperationConfig
.public ScanOperationConfig withSelect(Select select)
select
- Select
.ScanOperationConfig
.public ScanOperationConfig withTotalSegments(int totalSegments)
totalSegments
- value in range 1-4096ScanOperationConfig
.public ScanOperationConfig withSegment(int segment)
segment
- values in range 0-4095.ScanOperationConfig
.public ScanOperationConfig withCollectResults(boolean collectResults)
collectResults
- Whether to collect GetNextSet and GetRemaining
results in Matches propertyScanOperationConfig
.public ScanOperationConfig withConditionalOperator(ConditionalOperator conditionalOperator)
conditionalOperator
- the Conditional operator. see
ConditionalOperator
.ScanOperationConfig
.Copyright © 2019. All rights reserved.