Example usage for com.amazonaws.services.dynamodbv2.document.spec GetItemSpec withProjectionExpression

List of usage examples for com.amazonaws.services.dynamodbv2.document.spec GetItemSpec withProjectionExpression

Introduction

In this page you can find the example usage for com.amazonaws.services.dynamodbv2.document.spec GetItemSpec withProjectionExpression.

Prototype

public GetItemSpec withProjectionExpression(String projectionExpression) 

Source Link

Document

When a projection expression is specified, the corresponding name-map can optionally be specified via { #withNameMap(Map) .

Usage

From source file:org.xmlsh.aws.util.AWSDDBCommand.java

License:BSD License

protected GetItemSpec parseGetItemSpec(Options opts) throws InvalidArgumentException, XPathException,
        UnexpectedException, UnimplementedException, IOException {
    GetItemSpec spec = new GetItemSpec().withPrimaryKey(getPrimaryKey(opts))
            .withConsistentRead(opts.hasOpt("consistant")).withNameMap(parseAttrNameExprs(opts));
    if (opts.hasRemainingArgs())
        spec.withProjectionExpression(Util.stringJoin(Util.toStringList(opts.getRemainingArgs()), ","));
    return spec;//from  w  w  w  . j a  va2  s  .  co  m

}