getTable

abstract fun <T, PK : KeyType> getTable(name: String, schema: ItemSchema.PartitionKey<T, PK>): Table.PartitionKey<T, PK>

Get a Table reference for performing table operations

Parameters

name

The name of the table

schema

The ItemSchema which describes the table, its keys, and how items are converted

Type Parameters

T

The type of objects which will be read from and/or written to this table

PK

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


abstract fun <T, PK : KeyType, SK : KeyType> getTable(name: String, schema: ItemSchema.CompositeKey<T, PK, SK>): Table.CompositeKey<T, PK, SK>

Get a Table reference for performing table operations

Parameters

name

The name of the table

schema

The ItemSchema which describes the table, its keys, and how items are converted

Type Parameters

T

The type of objects which will be read from and/or written to this table

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