Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.dynamodb.datamodeling
Class DynamoDBScanExpression

java.lang.Object
  extended by com.amazonaws.services.dynamodb.datamodeling.DynamoDBScanExpression

public class DynamoDBScanExpression
extends Object

Options for filtering results from a scan operation. For example, callers can specify filter conditions so that only objects whose attributes match different conditions are returned (see ComparisonOperator for more information on the available comparison types).

See Also:
DynamoDBMapper.scan(Class, DynamoDBScanExpression)

Constructor Summary
DynamoDBScanExpression()
           
 
Method Summary
 void addFilterCondition(String attributeName, Condition condition)
          Adds a new filter condition to the current scan filter.
 Map<String,Condition> getScanFilter()
          Returns the scan filter as a map of attribute names to conditions.
 void setScanFilter(Map<String,Condition> scanFilter)
          Sets the scan filter to the map of attribute names to conditions.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamoDBScanExpression

public DynamoDBScanExpression()
Method Detail

setScanFilter

public void setScanFilter(Map<String,Condition> scanFilter)
Sets the scan filter to the map of attribute names to conditions.

Parameters:
scanFilter - The map of attribute names to conditions to use when filtering scan results.

getScanFilter

public Map<String,Condition> getScanFilter()
Returns the scan filter as a map of attribute names to conditions.

Returns:
The scan filter as a map of attribute names to conditions.

addFilterCondition

public void addFilterCondition(String attributeName,
                               Condition condition)
Adds a new filter condition to the current scan filter.

Parameters:
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.


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.