AWSDynamoDBObjectMapper *dynamoDBObjectMapper = [AWSDynamoDBObjectMapper defaultDynamoDBObjectMapper]; AWSDynamoDBScanExpression *scanExpression = [AWSDynamoDBScanExpression new]; scanExpression.exclusiveStartKey = nil; scanExpression.limit = @20; [[[dynamoDBObjectMapper scan:[DDBTableRow class] expression:scanExpression] continueWithExecutor:[BFExecutor mainThreadExecutor] withSuccessBlock:^id(BFTask *task) { ................
I can scan and return the first 20 records from a specific table from my DynamoDB, as shown in the code snippet above.
The question is that I want to add the scanExpression.scanFilter = property, but I did not find a suitable direction to create it. I am using AWSiOSSDKv2 aws sdk for iOS on xcode6
that's what i still have. It is not completed yet:
AWSDynamoDBCondition *condition = [AWSDynamoDBCondition new]; AWSDynamoDBAttributeValue *attribute = [AWSDynamoDBAttributeValue new]; attribute.N = @"400"; condition.comparisonOperator = AWSDynamoDBComparisonOperatorEQ; NSDictionary *scanFilter = @{@"lat": @{@"AttributeValueList":attribute, @"ComparisonOperator":@1} }; scanExpression.scanFilter = scanFilter;
source share