我想使用映射器进行一些条件插入。具体来说,我们需要这样做:
attribute_not_exists(MsgTs) or MsgTs <= :messageTs
DynamoMapper有可能吗?我得到了存在部分,但是LE部分呢?
DynamoDBSaveExpression saveExpression = new DynamoDBSaveExpression();
Map<String, ExpectedAttributeValue> expectedAttributes =
ImmutableMap.<String, ExpectedAttributeValue>builder()
.put("MsgTs", new ExpectedAttributeValue(false))
.put("MsgTs", ???)
.build();
saveExpression.setExpected(expectedAttributes);
saveExpression.setConditionalOperator(ConditionalOperator.AND);