public class GetItemSpec extends AbstractSpecWithPrimaryKey<GetItemRequest>
Constructor and Description |
---|
GetItemSpec() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getAttributesToGet() |
Map<String,String> |
getNameMap() |
ProgressListener |
getProgressListener() |
String |
getProjectionExpression() |
T |
getRequest()
Internal method.
|
RequestMetricCollector |
getRequestMetricCollector() |
String |
getReturnConsumedCapacity() |
Boolean |
isConsistentRead() |
void |
setProgressListener(ProgressListener progressListener) |
void |
setRequestMetricCollector(RequestMetricCollector requestMetricCollector) |
GetItemSpec |
withAttributesToGet(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(Map<String,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(String hashKeyName,
Object hashKeyValue)
Sets the primary key with the specified hash-only key name and value.
|
GetItemSpec |
withPrimaryKey(String hashKeyName,
Object hashKeyValue,
String rangeKeyName,
Object rangeKeyValue)
Sets the primary key with the specified hash key and range key.
|
GetItemSpec |
withProgressListener(ProgressListener progressListener) |
GetItemSpec |
withProjectionExpression(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
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(String hashKeyName, Object hashKeyValue)
AbstractSpecWithPrimaryKey
withPrimaryKey
in class AbstractSpecWithPrimaryKey<GetItemRequest>
public GetItemSpec withPrimaryKey(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue)
AbstractSpecWithPrimaryKey
withPrimaryKey
in class AbstractSpecWithPrimaryKey<GetItemRequest>
public String getReturnConsumedCapacity()
public GetItemSpec withReturnConsumedCapacity(ReturnConsumedCapacity capacity)
public GetItemSpec withAttributesToGet(String... attrNames)
public Boolean isConsistentRead()
public GetItemSpec withConsistentRead(boolean consistentRead)
public String getProjectionExpression()
public GetItemSpec withProjectionExpression(String projectionExpression)
withNameMap(Map)
. (Note
attributes-to-get must not be specified if a projection expression has
been specified.)public GetItemSpec withNameMap(Map<String,String> nameMap)
public GetItemSpec withProgressListener(ProgressListener progressListener)
public GetItemSpec withRequestMetricCollector(RequestMetricCollector requestMetricCollector)
@Beta public GetItemSpec withExpressionSpec(GetItemExpressionSpec xspec)
GetItemExpressionSpec
.public T getRequest()
public ProgressListener getProgressListener()
public void setProgressListener(ProgressListener progressListener)
public RequestMetricCollector getRequestMetricCollector()
public void setRequestMetricCollector(RequestMetricCollector requestMetricCollector)
Copyright © 2021. All rights reserved.