Skip to content

Tag: amazon-dynamodb

DynamoDB Update Transaction Java

I’m trying to update my table in dynamo with an update transaction. I want to update a specific row if it is found. If it isn’t found I want to add a new row to the table. I found some sample Java code here: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/transaction-example.html …

Mapping List to DynamoDB

I’m trying to map to DynamoDB list of dates in Java I have written my own converter but it works only for LocalDateTime but not for the List. Does anyone know how to do it correctly? Should I write separate converter that will return list of strings where each string will be converted from localdatetime…

Dynamodb get a single item based on sort key only

I am new to dynamodb and I need to process 5M records. Each record has an id and a status. I need to query for each record based on its status, process it, and finally update the status. I am using DynamoDbEnhancedClient but I could not find example on how to query based only on the range and not the

Converting POJO into map

I have a Java class having 10 attributes, I want to convert this into 3 maps(Breaking it into 5,3,2 fields resepectively). I did some research and found that Jackson’s ObjectMapper can be used by doing something like this: This will be creating a single map for all the attributes in my POJO. What I want…