【发布时间】:2017-01-12 17:31:46
【问题描述】:
@DynamoDBTable(tableName = "OrderDashboardMetadata")
public class OrderDashBoardMetaData {
private int position;
private Date ETA = null;
private List<String> notes;
@DynamoDBHashKey(attributeName = "queueName")
private String queueName;
@DynamoDBRangeKey(attributeName = "orderId")
private String orderId;
@DynamoDBIndexHashKey(globalSecondaryIndexName = "city")
private String city;
@DynamoDBIndexRangeKey(globalSecondaryIndexName = "city")
private String fcId;
@DynamoDBIndexHashKey(globalSecondaryIndexName = "orderState")
private String orderState;
@DynamoDBAttribute(attributeName = "action")
private String action;
@DynamoDBAttribute(attributeName = "createdTime")
private Date createdTime = new Date();
@DynamoDBAttribute(attributeName = "updatedTime")
private Date updatedTime = new Date();
嗨
我有一个像上面那样的表结构。 什么是查询以获取仅具有的结果
1) 队列名 --> PFS
2) ETA --> 大于 2017 年 1 月 1 日
3)订单状态——PO
请建议在 JAVA 中对上述场景进行完整查询。
【问题讨论】:
标签: java amazon-dynamodb