DynamoDBScanExpression
instead.@Deprecated public class DynamoDBScanExpression extends Object
ComparisonOperator
for more
information on the available comparison types).Constructor and Description |
---|
DynamoDBScanExpression()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addFilterCondition(String attributeName,
Condition condition)
Deprecated.
Adds a new filter condition to the current scan filter.
|
Key |
getExclusiveStartKey()
Deprecated.
Returns the exclusive start key for this scan.
|
Integer |
getLimit()
Deprecated.
Returns the limit of items to scan during this scan.
|
Map<String,Condition> |
getScanFilter()
Deprecated.
Returns the scan filter as a map of attribute names to conditions.
|
void |
setExclusiveStartKey(Key exclusiveStartKey)
Deprecated.
Sets the exclusive start key for this scan.
|
void |
setLimit(Integer limit)
Deprecated.
Sets the limit of items to scan during this scan.
|
void |
setScanFilter(Map<String,Condition> scanFilter)
Deprecated.
Sets the scan filter to the map of attribute names to conditions.
|
DynamoDBScanExpression |
withExclusiveStartKey(Key exclusiveStartKey)
Deprecated.
Sets the exclusive start key for this scan and returns a pointer to this
object for method-chaining.
|
DynamoDBScanExpression |
withLimit(Integer limit)
Deprecated.
Sets the limit of items to scan and returns a pointer to this object for
method-chaining.
|
public void setScanFilter(Map<String,Condition> scanFilter)
scanFilter
- The map of attribute names to conditions to use when filtering
scan results.public Map<String,Condition> getScanFilter()
public void addFilterCondition(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 Key getExclusiveStartKey()
public void setExclusiveStartKey(Key exclusiveStartKey)
public DynamoDBScanExpression withExclusiveStartKey(Key exclusiveStartKey)
public 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(Integer limit)
getLimit()
public DynamoDBScanExpression withLimit(Integer limit)
getLimit()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.