/** * Returns an <code>Item</code> given the low level item information; * or null if the input is null; */ public static Item toItem(Map<String, AttributeValue> item) { if (item == null) { return null; } return Item.fromMap(toSimpleMapValue(item)); }
/** * Returns all the returned attributes as a (non-null) {@link Item}. */ public Item getItem() { Map<String,Object> attributes = InternalUtils.toSimpleMapValue(result.getAttributes()); Item item = Item.fromMap(attributes); return item; }
/** * Returns all the returned attributes as a (non-null) {@link Item}. */ public Item getItem() { Map<String, Object> attributes = InternalUtils.toSimpleMapValue(result.getAttributes()); Item item = Item.fromMap(attributes); return item; }
/** * Returns all the returned attributes as a (non-null) {@link Item}. */ public Item getItem() { Map<String, Object> attributes = InternalUtils.toSimpleMapValue(result.getAttributes()); Item item = Item.fromMap(attributes); return item; }
/** * Returns all the returned attributes as an {@link Item}; or null if the * item doesn't exist. */ public Item getItem() { Map<String, Object> attributes = InternalUtils.toSimpleMapValue(result.getItem()); Item item = Item.fromMap(attributes); return item; }
/** * Convenient factory method - instantiates an <code>Item</code> from the * given JSON string. * * @return an <code>Item</code> initialized from the given JSON document; * or null if the input is null. */ public static Item fromJSON(String json) { if (json == null) return null; @SuppressWarnings("unchecked") Map<String, Object> map = (Map<String, Object>) valueConformer.transform(Jackson.fromJsonString(json, Map.class)); return fromMap(map); }
/** * Returns an <code>Item</code> given the low level item information; * or null if the input is null; */ public static Item toItem(Map<String, AttributeValue> item) { if (item == null) { return null; } return Item.fromMap(toSimpleMapValue(item)); }
/** * Returns all the returned attributes as an {@link Item}; or null if the * item doesn't exist. */ public Item getItem() { Map<String, Object> attributes = InternalUtils.toSimpleMapValue(result.getItem()); Item item = Item.fromMap(attributes); return item; }
/** * Sanitises the specified item. * * @param item The item. Must not be {@code null}. * * @return The sanitised item. */ static Item sanitize(final Item item) { return Item.fromMap(sanitize(item.asMap())); }
/** * Returns all the returned attributes as a (non-null) {@link Item}. */ public Item getItem() { Map<String, Object> attributes = InternalUtils.toSimpleMapValue(result.getAttributes()); Item item = Item.fromMap(attributes); return item; }
/** * Returns all the returned attributes as a (non-null) {@link Item}. */ public Item getItem() { Map<String,Object> attributes = InternalUtils.toSimpleMapValue(result.getAttributes()); Item item = Item.fromMap(attributes); return item; }
/** * Returns all the returned attributes as a (non-null) {@link Item}. */ public Item getItem() { Map<String, Object> attributes = InternalUtils.toSimpleMapValue(result.getAttributes()); Item item = Item.fromMap(attributes); return item; }
/** * Convenient factory method - instantiates an <code>Item</code> from the * given JSON string. * * @return an <code>Item</code> initialized from the given JSON document; * or null if the input is null. */ public static Item fromJSON(String json) { if (json == null) return null; @SuppressWarnings("unchecked") Map<String, Object> map = (Map<String, Object>) valueConformer.transform(Jackson.fromJsonString(json, Map.class)); return fromMap(map); }
} else if (typedValue.getM() != null) { Map<String,AttributeValue> value = typedValue.getM(); Item simpleMap = Item.fromMap(InternalUtils.toSimpleMapValue(value)); return new TableColumnValue(TableColumnType.jsonb, simpleMap.toJSON()); } else if (typedValue.getN() != null) {