Skip to content

Javadoc for TableSchema::itemToMap method #4462

Closed
@tkhill-AWS

Description

@tkhill-AWS

Describe the issue

We might want to clarify the description of the ignoreNulls parameter because it is not precise enough especially when the @DynamoDbIgnoreNulls attribute is thrown in the mix.

It current reads

ignoreNulls - If set to true; any null values in the Java object will not be added to the output map. If set to false; null values in the Java object will be added as AttributeValue of type 'nul' to the output map.

Perhaps change to

ignoreNulls - If set to true; any null, non-object (scalar) values in the Java object are not be added to the output map. If set to false; null, non-object (scalar) values in the Java object are added as AttributeValue of type 'nul' to the output map.

Object-type values (inner bean types)--if null--are output to the map either way. If @DynamoDBIgnoreNulls is used on the getter, an empty map is output; if there is no annotation on the getter, an attribute is created with 'nul' types for its (sub)attributes.

Links

https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/enhanced/dynamodb/TableSchema.html#itemToMap(T,boolean)

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationThis is a problem with documentation.needs-triageThis issue or PR still needs to be triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions