NullableValueConverter
class NullableValueConverter<V : Any>(delegate: ValueConverter<V>, nullValueConverter: ValueConverter<Nothing?> = NullValueConverter) : Converter<V?, AttributeValue>
Creates a converter between potentially-null values and DynamoDB NULL values.
Parameters
delegate
The delegate converter for non-null values
nullValueConverter
A Converter for null values. The default is NullValueConverter.
Type Parameters
V
The non-nullable type
Constructors
Link copied to clipboard
constructor(delegate: ValueConverter<V>, nullValueConverter: ValueConverter<Nothing?> = NullValueConverter)
Inherited functions
Link copied to clipboard
fun <V : Any> ValueConverter<V>.asNullable(nullValueConverter: ValueConverter<Nothing?> = NullValueConverter): ValueConverter<V?>
Link copied to clipboard
fun <T, PK : KeyType> ItemConverter<T>.withKeySpec(partitionKey: KeySpec<PK>, attributes: Attributes = emptyAttributes()): ItemSchema.PartitionKey<T, PK>
Associate this ItemConverter with a KeySpec for a partition key to form a complete ItemSchema
fun <T, PK : KeyType, SK : KeyType> ItemConverter<T>.withKeySpec(partitionKey: KeySpec<PK>, sortKey: KeySpec<SK>, attributes: Attributes = emptyAttributes()): ItemSchema.CompositeKey<T, PK, SK>
Associate this ItemConverter with KeySpec instances for a composite key to form a complete ItemSchema