public class GetItemImpl extends Object implements GetItemApi
GetItemApi
.Constructor and Description |
---|
GetItemImpl(AmazonDynamoDB client,
Table table) |
Modifier and Type | Method and Description |
---|---|
Item |
getItem(GetItemSpec spec)
Retrieves an item by specifying all the details.
|
Item |
getItem(KeyAttribute... primaryKey)
Retrieves an item by primary key.
|
Item |
getItem(PrimaryKey primaryKey)
Retrieves an item by primary key; or null if the item doesn't exist.
|
Item |
getItem(PrimaryKey primaryKey,
String projectionExpression,
Map<String,String> nameMap)
Retrieves an item using projection expression.
|
Item |
getItem(String hashKeyName,
Object hashKeyValue)
Retrieves an item by primary key when the primary key is a hash-only key.
|
Item |
getItem(String hashKeyName,
Object hashKeyValue,
String projectionExpression,
Map<String,String> nameMap)
Retrieves an item via the specified hash key using projection expression.
|
Item |
getItem(String hashKeyName,
Object hashKeyValue,
String rangeKeyName,
Object rangeKeyValue)
Retrieves an item by primary key when the primary key consists of both a
hash-key and a range-key.
|
Item |
getItem(String hashKeyName,
Object hashKeyValue,
String rangeKeyName,
Object rangeKeyValue,
String projectionExpression,
Map<String,String> nameMap)
Retrieves an item via the specified hash key and range key using
projection expression.
|
GetItemOutcome |
getItemOutcome(GetItemSpec spec)
Retrieves an item and the associated information by specifying all the
details.
|
GetItemOutcome |
getItemOutcome(KeyAttribute... primaryKeyComponents)
Retrieves an item and the associated information by primary key when the
primary key is a hash-only key.
|
GetItemOutcome |
getItemOutcome(PrimaryKey primaryKey)
Retrieves an item and the associated information by primary key.
|
GetItemOutcome |
getItemOutcome(PrimaryKey primaryKey,
String projectionExpression,
Map<String,String> nameMap)
Retrieves an item and the associated information using projection
expression.
|
GetItemOutcome |
getItemOutcome(String hashKeyName,
Object hashKeyValue)
Retrieves an item and the associated information by primary key when the
primary key is a hash-only key.
|
GetItemOutcome |
getItemOutcome(String hashKeyName,
Object hashKeyValue,
String projectionExpression,
Map<String,String> nameMap)
Retrieves an item and the associated information via the specified hash
key using projection expression.
|
GetItemOutcome |
getItemOutcome(String hashKeyName,
Object hashKeyValue,
String rangeKeyName,
Object rangeKeyValue)
Retrieves an item and the associated information by primary key when the
primary key consists of both a hash-key and a range-key.
|
GetItemOutcome |
getItemOutcome(String hashKeyName,
Object hashKeyValue,
String rangeKeyName,
Object rangeKeyValue,
String projectionExpression,
Map<String,String> nameMap)
Retrieves an item and the associated information via the specified hash
key and range key using projection expression.
|
Table |
getTable()
Returns the owning table.
|
public GetItemImpl(AmazonDynamoDB client, Table table)
public GetItemOutcome getItemOutcome(KeyAttribute... primaryKeyComponents)
GetItemApi
getItemOutcome
in interface GetItemApi
public GetItemOutcome getItemOutcome(PrimaryKey primaryKey)
GetItemApi
getItemOutcome
in interface GetItemApi
public GetItemOutcome getItemOutcome(PrimaryKey primaryKey, String projectionExpression, Map<String,String> nameMap)
GetItemApi
getItemOutcome
in interface GetItemApi
projectionExpression
- projection expression, example: "a.b , c[0].e"nameMap
- actual values for the attribute-name place holders; can be
null if there is no attribute-name placeholder.public GetItemOutcome getItemOutcome(GetItemSpec spec)
GetItemApi
getItemOutcome
in interface GetItemApi
public Item getItem(GetItemSpec spec)
GetItemApi
getItem
in interface GetItemApi
public Item getItem(KeyAttribute... primaryKey)
GetItemApi
getItem
in interface GetItemApi
public Item getItem(PrimaryKey primaryKey)
GetItemApi
getItem
in interface GetItemApi
public Item getItem(PrimaryKey primaryKey, String projectionExpression, Map<String,String> nameMap)
GetItemApi
getItem
in interface GetItemApi
projectionExpression
- projection expression, example: "a.b , c[0].e"nameMap
- actual values for the attribute-name place holders; can be
null if there is no attribute-name placeholder.public GetItemOutcome getItemOutcome(String hashKeyName, Object hashKeyValue)
GetItemApi
getItemOutcome
in interface GetItemApi
public GetItemOutcome getItemOutcome(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue)
GetItemApi
getItemOutcome
in interface GetItemApi
public Item getItem(String hashKeyName, Object hashKeyValue)
GetItemApi
getItem
in interface GetItemApi
public Item getItem(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue)
GetItemApi
getItem
in interface GetItemApi
public GetItemOutcome getItemOutcome(String hashKeyName, Object hashKeyValue, String projectionExpression, Map<String,String> nameMap)
GetItemApi
getItemOutcome
in interface GetItemApi
public GetItemOutcome getItemOutcome(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue, String projectionExpression, Map<String,String> nameMap)
GetItemApi
getItemOutcome
in interface GetItemApi
public Item getItem(String hashKeyName, Object hashKeyValue, String projectionExpression, Map<String,String> nameMap)
GetItemApi
getItem
in interface GetItemApi
public Item getItem(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue, String projectionExpression, Map<String,String> nameMap)
GetItemApi
getItem
in interface GetItemApi
public final Table getTable()
Copyright © 2020. All rights reserved.