Modifier and Type | Method and Description |
---|---|
Item |
Item.base64Decode(String... binaryAttrNames)
Utility method to decode the designated binary attributes from base-64
encoding; converting binary lists into binary sets.
|
Item |
Item.convertListsToSets(String... listAttrNames)
Utility method to converts the designated attributes from
List into Set , throwing
IllegalArgumentException should there be duplicate elements. |
static Item |
Item.fromJSON(String json)
Convenient factory method - instantiates an
Item from the
given JSON string. |
static Item |
Item.fromMap(Map<String,Object> attributes)
Convenient factory method - instantiates an
Item from the
given map. |
Item |
DeleteItemOutcome.getItem()
Returns all the returned attributes as an
Item ; or null if
the item doesn't exist. |
Item |
GetItemOutcome.getItem()
Returns all the returned attributes as an
Item ; or null if the
item doesn't exist. |
Item |
PutItemOutcome.getItem()
Returns all the returned attributes as a (non-null)
Item . |
Item |
UpdateItemOutcome.getItem()
Returns all the returned attributes as a (non-null)
Item . |
Item |
Table.getItem(GetItemSpec spec) |
Item |
Table.getItem(KeyAttribute... primaryKeyComponents) |
Item |
Table.getItem(PrimaryKey primaryKey) |
Item |
Table.getItem(PrimaryKey primaryKey,
String projectionExpression,
Map<String,String> nameMap) |
Item |
Table.getItem(String hashKeyName,
Object hashKeyValue) |
Item |
Table.getItem(String hashKeyName,
Object hashKeyValue,
String projectionExpression,
Map<String,String> nameMap) |
Item |
Table.getItem(String hashKeyName,
Object hashKeyValue,
String rangeKeyName,
Object rangeKeyValue) |
Item |
Table.getItem(String hashKeyName,
Object hashKeyValue,
String rangeKeyName,
Object rangeKeyValue,
GetItemExpressionSpec projectionExpressions) |
Item |
Table.getItem(String hashKeyName,
Object hashKeyValue,
String rangeKeyName,
Object rangeKeyValue,
String projectionExpression,
Map<String,String> nameMap) |
Item |
Item.removeAttribute(String attrName)
Removes the specified attribute from the current item.
|
static Item |
ItemUtils.toItem(Map<String,AttributeValue> item)
Returns an
Item given the low level item information;
or null if the input is null; |
Item |
Item.with(String attrName,
Object val)
Sets the value of the specified attribute to the given value.
|
Item |
Item.withBigDecimalSet(String attrName,
BigDecimal... vals)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withBigDecimalSet(String attrName,
Set<BigDecimal> val)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withBigInteger(String attrName,
BigInteger val)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withBinary(String attrName,
byte[] val)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withBinary(String attrName,
ByteBuffer val)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withBinarySet(String attrName,
byte[]... vals)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withBinarySet(String attrName,
ByteBuffer... vals)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withBinarySet(String attrName,
Set<byte[]> val)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withBoolean(String attrName,
boolean val)
Sets the value of the specified attribute in the current item to the
boolean value.
|
Item |
Item.withByteBufferSet(String attrName,
Set<ByteBuffer> val)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withDouble(String attrName,
double val)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withFloat(String attrName,
float val)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withInt(String attrName,
int val)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withJSON(String attrName,
String json)
Sets the value of the specified attribute in the current item to the
given JSON document in the form of a string.
|
Item |
Item.withKeyComponent(String keyAttrName,
Object keyAttrValue)
Convenient methods - sets an attribute of this item for the specified
key attribute name and value.
|
Item |
Item.withKeyComponents(KeyAttribute... components)
Convenient methods - sets the attributes of this item from the specified
key components.
|
Item |
Item.withList(String attrName,
List<?> val)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withList(String attrName,
Object... vals)
Sets the value of the specified attribute in the current item to the
given values as a list.
|
Item |
Item.withLong(String attrName,
long val)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withMap(String attrName,
Map<String,?> val)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withNull(String attrName)
Sets the value of the specified attribute to null.
|
Item |
Item.withNumber(String attrName,
BigDecimal val)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withNumber(String attrName,
Number val)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withNumberSet(String attrName,
Number... vals)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withNumberSet(String attrName,
Set<Number> vals)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withPrimaryKey(PrimaryKey primaryKey)
Convenient methods - sets the attributes of this item from the given
key attributes.
|
Item |
Item.withPrimaryKey(String hashKeyName,
Object hashKeyValue)
Convenient method to set the attributes of this item from the given
hash-only primary key name and value.
|
Item |
Item.withPrimaryKey(String hashKeyName,
Object hashKeyValue,
String rangeKeyName,
Object rangeKeyValue)
Convenient method to set the attributes of this item from the given
hash and range primary key.
|
Item |
Item.withShort(String attrName,
short val)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withString(String attrName,
String val)
Sets the value of the specified attribute in the current item to the
given string value.
|
Item |
Item.withStringSet(String attrName,
Set<String> val)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withStringSet(String attrName,
String... val)
Sets the value of the specified attribute in the current item to the
given value.
|
Modifier and Type | Method and Description |
---|---|
List<Item> |
ScanOutcome.getItems()
Returns a non-null list of the returned items; can be empty.
|
List<Item> |
QueryOutcome.getItems()
Returns a non-null list of the returned items; can be empty.
|
Collection<Item> |
TableWriteItems.getItemsToPut()
Returns the collection of items to be put in the current table in
a batch write operation.
|
Map<String,List<Item>> |
BatchGetItemOutcome.getTableItems()
Returns a map of table name to the list of retrieved items
|
PageIterable<Item,R> |
ItemCollection.pages()
Returns an
Iterable<Page<Item, R>> that iterates over pages of
items from this collection. |
static List<Item> |
ItemUtils.toItemList(List<Map<String,AttributeValue>> items)
Returns a non-null list of
Item 's given the low level
list of item information. |
Modifier and Type | Method and Description |
---|---|
TableWriteItems |
TableWriteItems.addItemToPut(Item item)
Adds an item to be put to the current table in a batch write operation.
|
PutItemOutcome |
Table.putItem(Item item) |
PutItemOutcome |
Table.putItem(Item item,
Expected... expected) |
PutItemOutcome |
Table.putItem(Item item,
String conditionExpression,
Map<String,String> nameMap,
Map<String,Object> valueMap) |
static Map<String,AttributeValue> |
ItemUtils.toAttributeValues(Item item)
Converts an
Item into the low-level representation;
or null if the input is null. |
TableWriteItems |
TableWriteItems.withItemsToPut(Item... itemsToPut)
Used to specify the items to be put in the current table in a batch write
operation.
|
Modifier and Type | Method and Description |
---|---|
TableWriteItems |
TableWriteItems.withItemsToPut(Collection<Item> itemsToPut)
Used to specify the collection of items to be put in the current table in
a batch write operation.
|
Modifier and Type | Method and Description |
---|---|
Item |
GetItemApi.getItem(GetItemSpec spec)
Retrieves an item by specifying all the details.
|
Item |
GetItemApi.getItem(KeyAttribute... primaryKeyComponents)
Retrieves an item by primary key.
|
Item |
GetItemApi.getItem(PrimaryKey primaryKey)
Retrieves an item by primary key; or null if the item doesn't exist.
|
Item |
GetItemApi.getItem(PrimaryKey primaryKey,
String projectionExpression,
Map<String,String> nameMap)
Retrieves an item using projection expression.
|
Item |
GetItemApi.getItem(String hashKeyName,
Object hashKey)
Retrieves an item by primary key when the primary key is a hash-only key.
|
Item |
GetItemApi.getItem(String hashKeyName,
Object hashKeyValue,
String projectionExpression,
Map<String,String> nameMap)
Retrieves an item via the specified hash key using projection expression.
|
Item |
GetItemApi.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 |
GetItemApi.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.
|
Modifier and Type | Method and Description |
---|---|
PutItemOutcome |
PutItemApi.putItem(Item item)
Unconditional put.
|
PutItemOutcome |
PutItemApi.putItem(Item item,
Expected... expected)
Conditional put.
|
PutItemOutcome |
PutItemApi.putItem(Item item,
String conditionExpression,
Map<String,String> nameMap,
Map<String,Object> valueMap)
Conditional put via condition expression.
|
Modifier and Type | Method and Description |
---|---|
Item |
GetItemImpl.getItem(GetItemSpec spec) |
Item |
GetItemImpl.getItem(KeyAttribute... primaryKey) |
Item |
GetItemImpl.getItem(PrimaryKey primaryKey) |
Item |
GetItemImpl.getItem(PrimaryKey primaryKey,
String projectionExpression,
Map<String,String> nameMap) |
Item |
GetItemImpl.getItem(String hashKeyName,
Object hashKeyValue) |
Item |
GetItemImpl.getItem(String hashKeyName,
Object hashKeyValue,
String projectionExpression,
Map<String,String> nameMap) |
Item |
GetItemImpl.getItem(String hashKeyName,
Object hashKeyValue,
String rangeKeyName,
Object rangeKeyValue) |
Item |
GetItemImpl.getItem(String hashKeyName,
Object hashKeyValue,
String rangeKeyName,
Object rangeKeyValue,
String projectionExpression,
Map<String,String> nameMap) |
Modifier and Type | Method and Description |
---|---|
static List<Item> |
InternalUtils.toItemList(List<Map<String,AttributeValue>> items)
Deprecated.
Returns a non-null list of
Item 's given the low level
list of item information. |
Modifier and Type | Method and Description |
---|---|
PutItemOutcome |
PutItemImpl.putItem(Item item) |
PutItemOutcome |
PutItemImpl.putItem(Item item,
Expected... expected) |
PutItemOutcome |
PutItemImpl.putItem(Item item,
String conditionExpression,
Map<String,String> nameMap,
Map<String,Object> valueMap) |
static Map<String,AttributeValue> |
InternalUtils.toAttributeValues(Item item)
Deprecated.
Converts an
Item into the low-level representation;
or null if the input is null. |
Modifier and Type | Method and Description |
---|---|
Item |
PutItemSpec.getItem() |
Modifier and Type | Method and Description |
---|---|
PutItemSpec |
PutItemSpec.withItem(Item item) |
Copyright © 2023. All rights reserved.