Class BigDecimalAttributeConverter

java.lang.Object
software.amazon.awssdk.enhanced.dynamodb.internal.converter.attribute.BigDecimalAttributeConverter
All Implemented Interfaces:
AttributeConverter<BigDecimal>

@ThreadSafe @Immutable public final class BigDecimalAttributeConverter extends Object implements AttributeConverter<BigDecimal>
A converter between BigDecimal and AttributeValue.

This stores values in DynamoDB as a number.

This supports perfect precision with the full range of numbers that can be stored in DynamoDB. For less precision or smaller values, consider using FloatAttributeConverter or DoubleAttributeConverter.

If values are known to be whole numbers, it is recommended to use a perfect-precision whole number representation like those provided by ShortAttributeConverter, IntegerAttributeConverter or BigIntegerAttributeConverter.

This can be created via create().