lundi 23 février 2015

When to use QueryRequest with java SDK for AWS?



We have a framework built up around QueryRequest. But our framework was built 12-18 months ago. And as I read current docs like the Developer Guide, I see no reference to QueryRequest. The example in this document (Querying Tables Using the AWS SDK for Java Document API) uses QuerySpec, which is completely new to me. Later in that same document there are more examples using Table.query. There is also a reference to using the Object Persistence Model.


Is QueryRequest outdated, or planned to be deprecated? Is Table.query currently the recommended method to use when you have hash keys, rangeKeyConditions, FilterExpressions, etc.?


FYI for context, we need to add using FilterExpressions, and I am wondering whether those can be used along with queryRequest.setQueryFilter, or if you have to put all your filters into one big filterExpression.




Aucun commentaire:

Enregistrer un commentaire