0
有没有办法通过将范围键设置为NOT EQUAL值来查询AWS DynamoDB。不等于范围键android AWS Dynamo DB
我有下面的代码,我希望将工作:
Condition rangeKey = new Condition()
.withComparisonOperator(ComparisonOperator.NE)
.withAttributeValueList(new
AttributeValue().withS(TestArray[0]));
conditionHashMap.put("ID", rangeKey);
queryExpression
.withIndexName("Index Key")
.withHashKeyValues(KEYVALUE)
.withRangeKeyConditions(conditionHashMap)
.withConsistentRead(false);
但它总是引发以下错误:
Attempted conditional constraint is not an indexable operation
试图改变ComparisonOperator到NOT_CONTAINS但同样的问题。通过大量的文章看来,似乎对条件操作符的查询有一些限制。
问题是。有没有一种解决方法可以给出与不相等或不包含相同的结果?