Example usage for com.amazonaws.services.dynamodbv2.model QueryRequest getScanIndexForward

List of usage examples for com.amazonaws.services.dynamodbv2.model QueryRequest getScanIndexForward

Introduction

In this page you can find the example usage for com.amazonaws.services.dynamodbv2.model QueryRequest getScanIndexForward.

Prototype


public Boolean getScanIndexForward() 

Source Link

Document

Specifies the order for index traversal: If true (default), the traversal is performed in ascending order; if false, the traversal is performed in descending order.

Usage

From source file:amazon.dynamodb.config.DynamoDBUtil.java

License:Open Source License

public static QueryRequest copyQueryRequest(QueryRequest queryRequest) {
    QueryRequest copiedQueryRequest = new QueryRequest().withAttributesToGet(queryRequest.getAttributesToGet())
            .withConsistentRead(queryRequest.getConsistentRead())
            .withExclusiveStartKey(queryRequest.getExclusiveStartKey())
            .withIndexName(queryRequest.getIndexName()).withKeyConditions(queryRequest.getKeyConditions())
            .withLimit(queryRequest.getLimit())
            .withReturnConsumedCapacity(queryRequest.getReturnConsumedCapacity())
            .withScanIndexForward(queryRequest.getScanIndexForward()).withSelect(queryRequest.getSelect())
            .withTableName(queryRequest.getTableName());

    return copiedQueryRequest;
}