Java 在typica library 1.7中获取simpledb域的所有项

Java 在typica library 1.7中获取simpledb域的所有项,java,amazon-simpledb,Java,Amazon Simpledb,在typica 1.7中,域类中没有ListItemsWithatAttributes函数,而这在早期版本中可用。如何使用Typica 1.7获取域中的项目列表请参见com.xerox.amazonws.simpledb.Domain类的selectItems方法。您需要传递带有显式属性列表的查询 您可以在选择查询中指定属性(attribute1,…,attributeN)的显式列表- select attribute1,..., attributeN from <domain name&

在typica 1.7中,域类中没有ListItemsWithatAttributes函数,而这在早期版本中可用。如何使用Typica 1.7获取域中的项目列表请参见com.xerox.amazonws.simpledb.Domain类的selectItems方法。您需要传递带有显式属性列表的查询

您可以在选择查询中指定属性(attribute1,…,attributeN)的显式列表-

select attribute1,..., attributeN from <domain name>
选择attribute1,…,attributeN from
方法-

public SDBListResult<Item> selectItems(String selectExpression,
                                   String nextToken,
                                   boolean consistent)
                            throws SDBException

Performs a query against this domain. A set of items is returned which may not be complete. If the nextToken in the result is set, this method can be called again with the same query and the supplied nextToken.

Parameters:
    selectExpression - the query to be run
    nextToken - an optional token to get more results
    consistent - if true, consistency is assured 
Throws:
    SDBException - wraps checked exceptions
public SDBListResult selectItems(字符串selectExpression,
下一个字符串,
布尔(一致)
抛出SDBEException
对该域执行查询。返回一组可能不完整的项目。如果设置了结果中的nextToken,则可以使用相同的查询和提供的nextToken再次调用此方法。
参数:
selectExpression—要运行的查询
nextToken-获得更多结果的可选标记
一致性-如果为真,则确保一致性
抛出:
SDBEException-包装已检查的异常