CompositeKey

interface CompositeKey<T, PK : KeyType, SK : KeyType> : ItemSchema<T>

Represents a schema with a primary key that is a composite of a partition key and a sort key

Type Parameters

T

The type of objects described by this schema

PK

The type of the partition key property, either KeyType or one of its specific derivations

SK

The type of the sort key property, either KeyType or one of its specific derivations

Properties

Link copied to clipboard
open override val keyAttributeNames: List<String>

The names of the attributes which form the primary key of this table

Link copied to clipboard
abstract val partitionKey: KeySpec<PK>

The KeySpec for the partition key

Link copied to clipboard
abstract val sortKey: KeySpec<SK>

The KeySpec for the sort key

Inherited properties

Link copied to clipboard
abstract val attributes: Attributes

Generic attributes for associating metadata with this schema

Link copied to clipboard
abstract val converter: ItemConverter<T>

The ItemConverter used to convert between objects and items