/** * Converts a map of string to simple objects into the low-level * representation; or null if the input is null. */ public static Map<String, AttributeValue> fromSimpleMap( Map<String, Object> map) { return ItemUtils.fromSimpleMap(map); }
private Map<String, AttributeValue> getItem(String id, Map<String, Object> attributes) { Map<String, AttributeValue> item = new HashMap<>(); item.put(partitionKeyName, new AttributeValue().withS(id)); item.put(attributesKeyName, new AttributeValue().withM(ItemUtils.fromSimpleMap(attributes))); return item; }
/** * Converts a map of string to simple objects into the low-level * representation; or null if the input is null. */ public static Map<String, AttributeValue> fromSimpleMap( Map<String, Object> map) { return ItemUtils.fromSimpleMap(map); }
private Map<String, AttributeValue> getItem(String id, Map<String, Object> attributes) { Map<String, AttributeValue> item = new HashMap<>(); item.put(partitionKeyName, new AttributeValue().withS(id)); item.put(attributesKeyName, new AttributeValue().withM(ItemUtils.fromSimpleMap(attributes))); return item; }