Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. val paramsMap = params.iterator.toMap
  2. val item: Item = new Item()
  3. .withPrimaryKey(Partition_Key_Name, partition_key)
  4. .withKeyComponent(Sort_Key_Name, sort_key)
  5.  
  6. paramsMap.map { case (k, v) => item.withString(k, v) }
  7. table.putItem(item)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement