ListValueConverter

class ListValueConverter<E>(delegate: ValueConverter<E>, attributeValueListValueConverter: ValueConverter<List<AttributeValue>> = AttributeValueListValueConverter) : Converter<List<E>, AttributeValue>

Converts between a List of E elements and DynamoDB L values

Parameters

delegate

A converter for transforming between values of E and AttributeValue

Type Parameters

E

The type of elements in the list

Constructors

Link copied to clipboard
constructor(delegate: ValueConverter<E>, attributeValueListValueConverter: ValueConverter<List<AttributeValue>> = AttributeValueListValueConverter)

Inherited functions

Link copied to clipboard
fun <V : Any> ValueConverter<V>.asNullable(nullValueConverter: ValueConverter<Nothing?> = NullValueConverter): ValueConverter<V?>
Link copied to clipboard
open override fun convertLeft(from: AttributeValue): List<E>
Link copied to clipboard
open override fun convertRight(from: List<E>): AttributeValue
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