Supported data types for DynamoDB Mapper for Java
This section describes the supported primitive Java data types, collections, and arbitrary data types in Amazon DynamoDB.
Amazon DynamoDB supports the following primitive Java data types and primitive wrapper classes.
Note
-
For more information about DynamoDB naming rules and the various supported data types, see Supported data types and naming rules in Amazon DynamoDB.
-
Empty Binary values are supported by the DynamoDBMapper.
-
Empty String values are supported by AWS SDK for Java 2.x.
In AWS SDK for Java 1.x, DynamoDBMapper supports reading of empty String attribute values, however, it will not write empty String attribute values because these attributes are dropped from the request.
DynamoDB supports the Java Set
Java type | DynamoDB type |
---|---|
All number types |
|
Strings |
|
Boolean |
|
ByteBuffer |
|
Date |
|
Set |
|
The DynamoDBTypeConverter
interface lets you map your own arbitrary data
types to a data type that is natively supported by DynamoDB. For more information, see
Mapping arbitrary data.