MapValueConverter
Converts between a Map with keys of type K and values of type V and DynamoDB M values
Type Parameters
K
The type of keys in the map
V
The type of values in the map
Constructors
Link copied to clipboard
constructor(entryConverter: Converter<Pair<K, V>, Pair<String, AttributeValue>>, attributeValueMapValueConverter: ValueConverter<Map<String, AttributeValue>> = AttributeValueMapValueConverter)
Creates a new map converter using the given entryConverter as a delegate
constructor(keyConverter: Converter<K, String>, valueConverter: ValueConverter<V>, attributeValueMapValueConverter: ValueConverter<Map<String, AttributeValue>> = AttributeValueMapValueConverter)
Creates a new map converter using the given keyConverter and valueConverter as delegates
Inherited functions
Link copied to clipboard
fun <V : Any> ValueConverter<V>.asNullable(nullValueConverter: ValueConverter<Nothing?> = NullValueConverter): ValueConverter<V?>
Link copied to clipboard
Link copied to clipboard
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