1

typica 1.7 では、Domain クラスに listItemsWithAttributes 関数はありませんが、以前のバージョンでは使用できました。Typica 1.7 を使用してドメイン内のアイテムのリストを取得する方法

4

1 に答える 1

0

クラスcom.xerox.amazonws.simpledb.DomainのselectItemsメソッドを参照してください。属性の明示的なリストを使用してクエリを渡す必要があります。

SELECTクエリで属性の明示的なリスト(attribute1、..。、attributeN)を指定できます-

select attribute1,..., attributeN from <domain name>

方法 -

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
于 2013-02-04T06:00:28.140 に答える