Modifier and Type | Field and Description |
---|---|
private java.util.Collection<Item> |
TableWriteItems.itemsToPut |
Modifier and Type | Method and Description |
---|---|
Item |
Item.base64Decode(java.lang.String... binaryAttrNames)
Utility method to decode the designated binary attributes from base-64
encoding; converting binary lists into binary sets.
|
Item |
Item.convertListsToSets(java.lang.String... listAttrNames)
Utility method to converts the designated attributes from
List into Set , throwing
IllegalArgumentException should there be duplicate elements. |
static Item |
Item.fromJSON(java.lang.String json)
Convenient factory method - instantiates an
Item from the
given JSON string. |
static Item |
Item.fromMap(java.util.Map<java.lang.String,java.lang.Object> attributes)
Convenient factory method - instantiates an
Item from the
given map. |
Item |
UpdateItemOutcome.getItem()
Returns all the returned attributes as a (non-null)
Item . |
Item |
PutItemOutcome.getItem()
Returns all the returned attributes as a (non-null)
Item . |
Item |
GetItemOutcome.getItem()
Returns all the returned attributes as an
Item ; or null if the
item doesn't exist. |
Item |
DeleteItemOutcome.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,
java.lang.String projectionExpression,
java.util.Map<java.lang.String,java.lang.String> nameMap) |
Item |
Table.getItem(java.lang.String hashKeyName,
java.lang.Object hashKeyValue) |
Item |
Table.getItem(java.lang.String hashKeyName,
java.lang.Object hashKeyValue,
java.lang.String projectionExpression,
java.util.Map<java.lang.String,java.lang.String> nameMap) |
Item |
Table.getItem(java.lang.String hashKeyName,
java.lang.Object hashKeyValue,
java.lang.String rangeKeyName,
java.lang.Object rangeKeyValue) |
Item |
Table.getItem(java.lang.String hashKeyName,
java.lang.Object hashKeyValue,
java.lang.String rangeKeyName,
java.lang.Object rangeKeyValue,
GetItemExpressionSpec projectionExpressions) |
Item |
Table.getItem(java.lang.String hashKeyName,
java.lang.Object hashKeyValue,
java.lang.String rangeKeyName,
java.lang.Object rangeKeyValue,
java.lang.String projectionExpression,
java.util.Map<java.lang.String,java.lang.String> nameMap) |
Item |
Item.removeAttribute(java.lang.String attrName)
Removes the specified attribute from the current item.
|
Item |
Item.with(java.lang.String attrName,
java.lang.Object val)
Sets the value of the specified attribute to the given value.
|
Item |
Item.withBigDecimalSet(java.lang.String attrName,
java.math.BigDecimal... vals)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withBigDecimalSet(java.lang.String attrName,
java.util.Set<java.math.BigDecimal> val)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withBigInteger(java.lang.String attrName,
java.math.BigInteger val)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withBinary(java.lang.String attrName,
byte[] val)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withBinary(java.lang.String attrName,
java.nio.ByteBuffer val)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withBinarySet(java.lang.String attrName,
byte[]... vals)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withBinarySet(java.lang.String attrName,
java.nio.ByteBuffer... vals)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withBinarySet(java.lang.String attrName,
java.util.Set<byte[]> val)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withBoolean(java.lang.String attrName,
boolean val)
Sets the value of the specified attribute in the current item to the
boolean value.
|
Item |
Item.withByteBufferSet(java.lang.String attrName,
java.util.Set<java.nio.ByteBuffer> val)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withDouble(java.lang.String attrName,
double val)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withFloat(java.lang.String attrName,
float val)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withInt(java.lang.String attrName,
int val)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withJSON(java.lang.String attrName,
java.lang.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(java.lang.String keyAttrName,
java.lang.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(java.lang.String attrName,
java.util.List<?> val)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withList(java.lang.String attrName,
java.lang.Object... vals)
Sets the value of the specified attribute in the current item to the
given values as a list.
|
Item |
Item.withLong(java.lang.String attrName,
long val)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withMap(java.lang.String attrName,
java.util.Map<java.lang.String,?> val)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withNull(java.lang.String attrName)
Sets the value of the specified attribute to null.
|
Item |
Item.withNumber(java.lang.String attrName,
java.math.BigDecimal val)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withNumber(java.lang.String attrName,
java.lang.Number val)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withNumberSet(java.lang.String attrName,
java.lang.Number... vals)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withNumberSet(java.lang.String attrName,
java.util.Set<java.lang.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(java.lang.String hashKeyName,
java.lang.Object hashKeyValue)
Convenient method to set the attributes of this item from the given
hash-only primary key name and value.
|
Item |
Item.withPrimaryKey(java.lang.String hashKeyName,
java.lang.Object hashKeyValue,
java.lang.String rangeKeyName,
java.lang.Object rangeKeyValue)
Convenient method to set the attributes of this item from the given
hash and range primary key.
|
Item |
Item.withShort(java.lang.String attrName,
short val)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withString(java.lang.String attrName,
java.lang.String val)
Sets the value of the specified attribute in the current item to the
given string value.
|
Item |
Item.withStringSet(java.lang.String attrName,
java.util.Set<java.lang.String> val)
Sets the value of the specified attribute in the current item to the
given value.
|
Item |
Item.withStringSet(java.lang.String attrName,
java.lang.String... val)
Sets the value of the specified attribute in the current item to the
given value.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Item> |
ScanOutcome.getItems()
Returns a non-null list of the returned items; can be empty.
|
java.util.List<Item> |
QueryOutcome.getItems()
Returns a non-null list of the returned items; can be empty.
|
java.util.Collection<Item> |
TableWriteItems.getItemsToPut()
Returns the collection of items to be put in the current table in
a batch write operation.
|
java.util.Map<java.lang.String,java.util.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. |
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,
java.lang.String conditionExpression,
java.util.Map<java.lang.String,java.lang.String> nameMap,
java.util.Map<java.lang.String,java.lang.Object> valueMap) |
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(java.util.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,
java.lang.String projectionExpression,
java.util.Map<java.lang.String,java.lang.String> nameMap)
Retrieves an item using projection expression.
|
Item |
GetItemApi.getItem(java.lang.String hashKeyName,
java.lang.Object hashKey)
Retrieves an item by primary key when the primary key is a hash-only key.
|
Item |
GetItemApi.getItem(java.lang.String hashKeyName,
java.lang.Object hashKeyValue,
java.lang.String projectionExpression,
java.util.Map<java.lang.String,java.lang.String> nameMap)
Retrieves an item via the specified hash key using projection expression.
|
Item |
GetItemApi.getItem(java.lang.String hashKeyName,
java.lang.Object hashKeyValue,
java.lang.String rangeKeyName,
java.lang.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(java.lang.String hashKeyName,
java.lang.Object hashKeyValue,
java.lang.String rangeKeyName,
java.lang.Object rangeKeyValue,
java.lang.String projectionExpression,
java.util.Map<java.lang.String,java.lang.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,
java.lang.String conditionExpression,
java.util.Map<java.lang.String,java.lang.String> nameMap,
java.util.Map<java.lang.String,java.lang.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,
java.lang.String projectionExpression,
java.util.Map<java.lang.String,java.lang.String> nameMap) |
Item |
GetItemImpl.getItem(java.lang.String hashKeyName,
java.lang.Object hashKeyValue) |
Item |
GetItemImpl.getItem(java.lang.String hashKeyName,
java.lang.Object hashKeyValue,
java.lang.String projectionExpression,
java.util.Map<java.lang.String,java.lang.String> nameMap) |
Item |
GetItemImpl.getItem(java.lang.String hashKeyName,
java.lang.Object hashKeyValue,
java.lang.String rangeKeyName,
java.lang.Object rangeKeyValue) |
Item |
GetItemImpl.getItem(java.lang.String hashKeyName,
java.lang.Object hashKeyValue,
java.lang.String rangeKeyName,
java.lang.Object rangeKeyValue,
java.lang.String projectionExpression,
java.util.Map<java.lang.String,java.lang.String> nameMap) |
Modifier and Type | Method and Description |
---|---|
Page<Item,ScanOutcome> |
ScanCollection.firstPage() |
Page<Item,QueryOutcome> |
QueryCollection.firstPage() |
Page<Item,ScanOutcome> |
ScanPage.nextPage() |
Page<Item,QueryOutcome> |
QueryPage.nextPage() |
static java.util.List<Item> |
InternalUtils.toItemList(java.util.List<java.util.Map<java.lang.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 |
---|---|
PutItemOutcome |
PutItemImpl.putItem(Item item) |
PutItemOutcome |
PutItemImpl.putItem(Item item,
Expected... expected) |
PutItemOutcome |
PutItemImpl.putItem(Item item,
java.lang.String conditionExpression,
java.util.Map<java.lang.String,java.lang.String> nameMap,
java.util.Map<java.lang.String,java.lang.Object> valueMap) |
static java.util.Map<java.lang.String,AttributeValue> |
InternalUtils.toAttributeValues(Item item)
Converts an
Item into the low-level representation;
or null if the input is null. |
Modifier and Type | Field and Description |
---|---|
private Item |
PutItemSpec.item |
Modifier and Type | Method and Description |
---|---|
Item |
PutItemSpec.getItem() |
Modifier and Type | Method and Description |
---|---|
PutItemSpec |
PutItemSpec.withItem(Item item) |