public class DynamoDBScanExpression
extends java.lang.Object
ComparisonOperator
for more
information on the available comparison types).Constructor and Description |
---|
DynamoDBScanExpression() |
Modifier and Type | Method and Description |
---|---|
DynamoDBScanExpression |
addExpressionAttributeNamesEntry(java.lang.String key,
java.lang.String value)
One or more substitution variables for simplifying complex expressions.
|
DynamoDBScanExpression |
addExpressionAttributeValuesEntry(java.lang.String key,
AttributeValue value)
One or more values that can be substituted in an expression.
|
void |
addFilterCondition(java.lang.String attributeName,
Condition condition)
Adds a new filter condition to the current scan filter.
|
DynamoDBScanExpression |
clearExpressionAttributeNamesEntries()
Removes all the entries added into ExpressionAttributeNames, setting
ExpressAttributesNames to null
|
DynamoDBScanExpression |
clearExpressionAttributeValuesEntries()
Removes all the entries added into ExpressionAttributeValues, setting
ExpressionAttributeValues to null
|
java.lang.String |
getConditionalOperator()
Returns the logical operator on the filter conditions of this scan.
|
java.util.Map<java.lang.String,AttributeValue> |
getExclusiveStartKey()
Returns the exclusive start key for this scan.
|
java.util.Map<java.lang.String,java.lang.String> |
getExpressionAttributeNames()
One or more substitution variables for simplifying complex expressions.
|
java.util.Map<java.lang.String,AttributeValue> |
getExpressionAttributeValues()
One or more values that can be substituted in an expression.
|
java.lang.String |
getFilterExpression()
Evaluates the query results and returns only the desired values.
|
java.lang.Integer |
getLimit()
Returns the limit of items to scan during this scan.
|
java.util.Map<java.lang.String,Condition> |
getScanFilter()
Returns the scan filter as a map of attribute names to conditions.
|
java.lang.Integer |
getSegment()
Returns the ID of the segment to be scanned.
|
java.lang.Integer |
getTotalSegments()
Returns the total number of segments into which the scan will be divided.
|
void |
setConditionalOperator(ConditionalOperator conditionalOperator)
Sets the logical operator on the filter conditions of this scan.
|
void |
setConditionalOperator(java.lang.String conditionalOperator)
Sets the logical operator on the filter conditions of this scan.
|
void |
setExclusiveStartKey(java.util.Map<java.lang.String,AttributeValue> exclusiveStartKey)
Sets the exclusive start key for this scan.
|
void |
setExpressionAttributeNames(java.util.Map<java.lang.String,java.lang.String> expressionAttributeNames)
One or more substitution variables for simplifying complex expressions.
|
void |
setExpressionAttributeValues(java.util.Map<java.lang.String,AttributeValue> expressionAttributeValues)
One or more values that can be substituted in an expression.
|
void |
setFilterExpression(java.lang.String filterExpression)
Evaluates the query results and returns only the desired values.
|
void |
setLimit(java.lang.Integer limit)
Sets the limit of items to scan during this scan.
|
void |
setScanFilter(java.util.Map<java.lang.String,Condition> scanFilter)
Sets the scan filter to the map of attribute names to conditions given.
|
void |
setSegment(java.lang.Integer segment)
Sets the ID of the segment to be scanned.
|
void |
setTotalSegments(java.lang.Integer totalSegments)
Sets the total number of segments into which the scan will be divided.
|
DynamoDBScanExpression |
withConditionalOperator(ConditionalOperator conditionalOperator)
Sets the logical operator on the filter conditions of this scan and
returns a pointer to this object for method-chaining.
|
DynamoDBScanExpression |
withConditionalOperator(java.lang.String conditionalOperator)
Sets the logical operator on the filter conditions of this scan and
returns a pointer to this object for method-chaining.
|
DynamoDBScanExpression |
withExclusiveStartKey(java.util.Map<java.lang.String,AttributeValue> exclusiveStartKey)
Sets the exclusive start key for this scan and returns a pointer to this
object for method-chaining.
|
DynamoDBScanExpression |
withExpressionAttributeNames(java.util.Map<java.lang.String,java.lang.String> expressionAttributeNames)
One or more substitution variables for simplifying complex expressions.
|
DynamoDBScanExpression |
withExpressionAttributeValues(java.util.Map<java.lang.String,AttributeValue> expressionAttributeValues)
One or more values that can be substituted in an expression.
|
DynamoDBScanExpression |
withFilterConditionEntry(java.lang.String attributeName,
Condition condition)
Adds a new filter condition to the current scan filter and returns a
pointer to this object for method-chaining.
|
DynamoDBScanExpression |
withFilterExpression(java.lang.String filterExpression)
Evaluates the query results and returns only the desired values.
|
DynamoDBScanExpression |
withLimit(java.lang.Integer limit)
Sets the limit of items to scan and returns a pointer to this object for
method-chaining.
|
DynamoDBScanExpression |
withScanFilter(java.util.Map<java.lang.String,Condition> scanFilter)
Sets the scan filter to the map of attribute names to conditions given
and returns a pointer to this object for method-chaining.
|
DynamoDBScanExpression |
withSegment(java.lang.Integer segment)
Sets the ID of the segment to be scanned and returns a pointer to this
object for method-chaining.
|
DynamoDBScanExpression |
withTotalSegments(java.lang.Integer totalSegments)
Sets the total number of segments into which the scan will be divided and
returns a pointer to this object for method-chaining.
|
public java.util.Map<java.lang.String,Condition> getScanFilter()
public void setScanFilter(java.util.Map<java.lang.String,Condition> scanFilter)
scanFilter
- The map of attribute names to conditions to use when
filtering scan results.public DynamoDBScanExpression withScanFilter(java.util.Map<java.lang.String,Condition> scanFilter)
scanFilter
- The map of attribute names to conditions to use when
filtering scan results.DynamoDBScanExpression
public void addFilterCondition(java.lang.String attributeName, Condition condition)
attributeName
- The name of the attribute on which the specified
condition operates.condition
- The condition which describes how the specified
attribute is compared and if a row of data is included in the
results returned by the scan operation.public DynamoDBScanExpression withFilterConditionEntry(java.lang.String attributeName, Condition condition)
attributeName
- The name of the attribute on which the specified
condition operates.condition
- The condition which describes how the specified
attribute is compared and if a row of data is included in the
results returned by the scan operation.DynamoDBScanExpression
public java.util.Map<java.lang.String,AttributeValue> getExclusiveStartKey()
public void setExclusiveStartKey(java.util.Map<java.lang.String,AttributeValue> exclusiveStartKey)
exclusiveStartKey
- the exclusive start key.public DynamoDBScanExpression withExclusiveStartKey(java.util.Map<java.lang.String,AttributeValue> exclusiveStartKey)
exclusiveStartKey
- a map of string to attribute value.DynamoDBScanExpression
public java.lang.Integer getLimit()
Use with caution. Please note that this is not the same as the
number of items to return from the scan operation -- the operation will
cease and return as soon as this many items are scanned, even if no
matching results are found. Furthermore, PaginatedScanList
will
execute as many scan operations as necessary until it either reaches the
end of the result set as indicated by DynamoDB or enough elements are
available to fulfill the list operation (e.g. iteration). Therefore,
except when scanning without a scan filter, it's usually bad practice to
set a low limit, since doing so will often generate the same amount of
traffic to DynamoDB but with a greater number of round trips and
therefore more overall latency.
public void setLimit(java.lang.Integer limit)
limit
- the limit for scan operation.getLimit()
public DynamoDBScanExpression withLimit(java.lang.Integer limit)
limit
- the limit for scan operation.DynamoDBScanExpression
getLimit()
public java.lang.Integer getTotalSegments()
public void setTotalSegments(java.lang.Integer totalSegments)
totalSegments
- the total segments.public DynamoDBScanExpression withTotalSegments(java.lang.Integer totalSegments)
totalSegments
- the total segments.DynamoDBScanExpression
public java.lang.Integer getSegment()
public void setSegment(java.lang.Integer segment)
segment
- the id of the segment to be scanned.public DynamoDBScanExpression withSegment(java.lang.Integer segment)
segment
- the id of the segment to be scanned.DynamoDBScanExpression
public java.lang.String getConditionalOperator()
public void setConditionalOperator(java.lang.String conditionalOperator)
conditionalOperator
- the logical operator.public DynamoDBScanExpression withConditionalOperator(java.lang.String conditionalOperator)
conditionalOperator
- the logical operator.DynamoDBScanExpression
public void setConditionalOperator(ConditionalOperator conditionalOperator)
conditionalOperator
- the logical operator.public DynamoDBScanExpression withConditionalOperator(ConditionalOperator conditionalOperator)
conditionalOperator
- the logical operator.DynamoDBScanExpression
public java.lang.String getFilterExpression()
The condition you specify is applied to the items queried; any items that do not match the expression are not returned.
The condition you specify is applied to the items queried; any items that do not match the expression are not returned.
ScanRequest.getFilterExpression()
public void setFilterExpression(java.lang.String filterExpression)
The condition you specify is applied to the items queried; any items that do not match the expression are not returned.
filterExpression
- Evaluates the query results and returns only the
desired values.
The condition you specify is applied to the items queried; any items that do not match the expression are not returned.
ScanRequest.setFilterExpression(String)
public DynamoDBScanExpression withFilterExpression(java.lang.String filterExpression)
The condition you specify is applied to the items queried; any items that do not match the expression are not returned.
Returns a reference to this object so that method calls can be chained together.
filterExpression
- Evaluates the query results and returns only the
desired values.
The condition you specify is applied to the items queried; any items that do not match the expression are not returned.
ScanRequest.withFilterExpression(String)
public java.util.Map<java.lang.String,java.lang.String> getExpressionAttributeNames()
scanRequest#getExpressionAttributeNames()
public void setExpressionAttributeNames(java.util.Map<java.lang.String,java.lang.String> expressionAttributeNames)
expressionAttributeNames
- One or more substitution variables for
simplifying complex expressions.ScanRequest.setExpressionAttributeNames(Map)
public DynamoDBScanExpression withExpressionAttributeNames(java.util.Map<java.lang.String,java.lang.String> expressionAttributeNames)
expressionAttributeNames
- One or more substitution variables for
simplifying complex expressions.ScanRequest.withExpressionAttributeNames(Map)
public DynamoDBScanExpression addExpressionAttributeNamesEntry(java.lang.String key, java.lang.String value)
key
- The key of the entry to be added into
ExpressionAttributeNames.value
- The corresponding value of the entry to be added into
ExpressionAttributeNames.DynamoDBScanExpression
ScanRequest.addExpressionAttributeNamesEntry(String, String)
public DynamoDBScanExpression clearExpressionAttributeNamesEntries()
Returns a reference to this object so that method calls can be chained together.
DynamoDBScanExpression
public java.util.Map<java.lang.String,AttributeValue> getExpressionAttributeValues()
ScanRequest.getExpressionAttributeValues()
public void setExpressionAttributeValues(java.util.Map<java.lang.String,AttributeValue> expressionAttributeValues)
expressionAttributeValues
- One or more values that can be
substituted in an expression.ScanRequest.setExpressionAttributeValues(Map)
public DynamoDBScanExpression withExpressionAttributeValues(java.util.Map<java.lang.String,AttributeValue> expressionAttributeValues)
expressionAttributeValues
- One or more values that can be
substituted in an expression.ScanRequest.withExpressionAttributeValues(Map)
public DynamoDBScanExpression addExpressionAttributeValuesEntry(java.lang.String key, AttributeValue value)
key
- The key of the entry to be added into
ExpressionAttributeValues.value
- The corresponding value of the entry to be added into
ExpressionAttributeValues.DynamoDBScanExpression
ScanRequest.addExpressionAttributeValuesEntry(String,
AttributeValue)
public DynamoDBScanExpression clearExpressionAttributeValuesEntries()
Returns a reference to this object so that method calls can be chained together.
DynamoDBScanExpression
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.