public class GetItemSpec extends AbstractSpecWithPrimaryKey<GetItemRequest>
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,java.lang.String> |
nameMap |
Constructor and Description |
---|
GetItemSpec() |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getAttributesToGet() |
java.util.Map<java.lang.String,java.lang.String> |
getNameMap() |
java.lang.String |
getProjectionExpression() |
java.lang.String |
getReturnConsumedCapacity() |
java.lang.Boolean |
isConsistentRead() |
GetItemSpec |
withAttributesToGet(java.lang.String... attrNames) |
GetItemSpec |
withConsistentRead(boolean consistentRead) |
GetItemSpec |
withExpressionSpec(GetItemExpressionSpec xspec)
Convenient method to specify expressions (and the associated name map and
value map) via
GetItemExpressionSpec . |
GetItemSpec |
withNameMap(java.util.Map<java.lang.String,java.lang.String> nameMap)
Applicable only when an expression has been specified.
|
GetItemSpec |
withPrimaryKey(KeyAttribute... components)
Sets the primary key with the specified key components.
|
GetItemSpec |
withPrimaryKey(PrimaryKey primaryKey)
Sets the primary key.
|
GetItemSpec |
withPrimaryKey(java.lang.String hashKeyName,
java.lang.Object hashKeyValue)
Sets the primary key with the specified hash-only key name and value.
|
GetItemSpec |
withPrimaryKey(java.lang.String hashKeyName,
java.lang.Object hashKeyValue,
java.lang.String rangeKeyName,
java.lang.Object rangeKeyValue)
Sets the primary key with the specified hash key and range key.
|
GetItemSpec |
withProgressListener(ProgressListener progressListener) |
GetItemSpec |
withProjectionExpression(java.lang.String projectionExpression)
When a projection expression is specified, the corresponding name-map can
optionally be specified via {
withNameMap(Map) . |
GetItemSpec |
withRequestMetricCollector(RequestMetricCollector requestMetricCollector) |
GetItemSpec |
withReturnConsumedCapacity(ReturnConsumedCapacity capacity) |
getKeyComponents
getProgressListener, getRequest, getRequestMetricCollector, setProgressListener, setRequestMetricCollector
public GetItemSpec withPrimaryKey(KeyAttribute... components)
AbstractSpecWithPrimaryKey
withPrimaryKey
in class AbstractSpecWithPrimaryKey<GetItemRequest>
public GetItemSpec withPrimaryKey(PrimaryKey primaryKey)
AbstractSpecWithPrimaryKey
withPrimaryKey
in class AbstractSpecWithPrimaryKey<GetItemRequest>
public GetItemSpec withPrimaryKey(java.lang.String hashKeyName, java.lang.Object hashKeyValue)
AbstractSpecWithPrimaryKey
withPrimaryKey
in class AbstractSpecWithPrimaryKey<GetItemRequest>
public GetItemSpec withPrimaryKey(java.lang.String hashKeyName, java.lang.Object hashKeyValue, java.lang.String rangeKeyName, java.lang.Object rangeKeyValue)
AbstractSpecWithPrimaryKey
withPrimaryKey
in class AbstractSpecWithPrimaryKey<GetItemRequest>
public java.lang.String getReturnConsumedCapacity()
public GetItemSpec withReturnConsumedCapacity(ReturnConsumedCapacity capacity)
public java.util.List<java.lang.String> getAttributesToGet()
public GetItemSpec withAttributesToGet(java.lang.String... attrNames)
public java.lang.Boolean isConsistentRead()
public GetItemSpec withConsistentRead(boolean consistentRead)
public java.lang.String getProjectionExpression()
public GetItemSpec withProjectionExpression(java.lang.String projectionExpression)
withNameMap(Map)
. (Note
attributes-to-get must not be specified if a projection expression has
been specified.)public java.util.Map<java.lang.String,java.lang.String> getNameMap()
public GetItemSpec withNameMap(java.util.Map<java.lang.String,java.lang.String> nameMap)
public GetItemSpec withProgressListener(ProgressListener progressListener)
withProgressListener
in class AbstractSpec<GetItemRequest>
public GetItemSpec withRequestMetricCollector(RequestMetricCollector requestMetricCollector)
withRequestMetricCollector
in class AbstractSpec<GetItemRequest>
@Beta public GetItemSpec withExpressionSpec(GetItemExpressionSpec xspec)
GetItemExpressionSpec
.