java.lang.Object
software.amazon.awssdk.enhanced.dynamodb.internal.converter.attribute.FloatAttributeConverter
All Implemented Interfaces:
AttributeConverter<Float>, PrimitiveConverter<Float>

@ThreadSafe @Immutable public final class FloatAttributeConverter extends Object implements AttributeConverter<Float>, PrimitiveConverter<Float>
A converter between Float and AttributeValue.

This stores values in DynamoDB as a number.

This supports converting numbers stored in DynamoDB into a single-precision floating point number, within the range Float.MIN_VALUE, Float.MAX_VALUE. For more precision or larger values, consider using DoubleAttributeConverter or BigDecimalAttributeConverter.

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().