Questions tagged [aws-java-sdk-dynamodb]

25 questions
1
vote
1 answer

Is there a way to fetch the DynamoDB attribute name if we know the attribute name of the entity class?

Given a DynamoDB entity like this @Data() @DynamoDBTable(tableName = "DynamoTable") public class DynamoTable implements Serializable { @DynamoDBAttribute(attributeName = "DATA_VALUE") private String data … } What I want to know is if I…
0
votes
0 answers

How to write a list of maps in DDB via AWS/DDB Java SDK?

Say currently I have a DDB that looks like this: EMP_DATA { empName: String, empId: Number } Now, I want to add a new List field to this table called iceCreamFlavorsTried. An employee can have tried multiple ice cream flavors. The schema of…
0
votes
1 answer

DynamoDB Java SDK - QueryRequest with IN clause

The Javadoc of software.amazon.awssdk.services.dynamodb.model.QueryRequest.expressionAttributeValues() says a following query can be done: ProductStatus IN (:avail, :back, :disc) where the values are passed in in "ExpressionAttributeValues" as…
0
votes
1 answer

GROUP BY-Like query in DynamoDB with DynamoDbEnhancedClient

I'm trying to write a Query in DynamoDB with logic similar to a GROUP BY in SQL. Let's consider the following table with partition key simulation_id: Simulation (Table): simulation_id_1 - type_1 - ... simulation_id_1 - type_1 - ... …
Nano
  • 814
  • 2
  • 13
  • 30
0
votes
1 answer

Referring to existing Dynamo DB in Lambda functions

I'm trying to read an existing dynamo DB in Lambda function, but resources in YAML creates a new table. If I could do that, someone please help me how? Also I need to use an existing S3 bucket
0
votes
0 answers

How to fetch all the values of one column using column name in dynamoDB table in java?

I have a dynamoDB table in my aws account. I can create client like this. AmazonDynamoDB amazonDynamoDB = AmazonDynamoDBClient.builder().withRegion("eu-west-1").withCredentials(creds).build(); DynamoDB dynamoDB = new…
0
votes
1 answer

Using DynamoDBEnhancedAsyncClient to scan and fetch futureObject

I am trying to use v2 library to persist & retrieve data in non-blocking manner. Put method of DynamoDBEnhancedAsyncClient returns CompletableFuture object but scan and query methods return PagePublisher object - that tends to tell me that this is a…
0
votes
1 answer

SocketTimeoutException when calling load for DynamoDBMapper

I am getting sometimes this error when calling load for DynamoDBMapper: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) at…
Mouna
  • 3,221
  • 3
  • 27
  • 38
0
votes
1 answer

How to create a serial numbers autogenerated in dynamoDb using annotations

I have created a pojo class in my java spring boot app and with respective annotations for doing create/update it's working fine but when i use the autogenerated key annotation it is creating some random id but i want those id column as serial…
-1
votes
1 answer

How to create a boolean datatype in AWS DynamoDB Read/Write operations using DynamoDB table annotations

I have created a class pojo class in java to create/update items in aws dynamodb when i was trying to create/update an item in dynamodb it is working fine but the column created in dynamodb datatype seems to be string instead of boolean. I have…
1
2