Table

Represents a table in DynamoDB and an associated item schema. Operations on this table will invoke low-level operations after mapping objects to items and vice versa.

Type Parameters

T

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

Inheritors

Types

Link copied to clipboard

Represents a table whose primary key is a composite of a partition key and a sort key

Link copied to clipboard

Represents a table whose primary key is a single partition key

Inherited properties

Link copied to clipboard
abstract val mapper: DynamoDbMapper

The DynamoDbMapper which holds the underlying DynamoDB service client used to invoke operations

Link copied to clipboard
abstract val schema: ItemSchema<T>

The ItemSchema which describes how to map objects to items and vice versa

Link copied to clipboard
abstract val tableName: String

The name of the table

Functions

Link copied to clipboard
abstract fun <T, PK : KeyType, SK : KeyType> getIndex(name: String, schema: ItemSchema.CompositeKey<T, PK, SK>): Index.CompositeKey<T, PK, SK>
abstract fun <T, PK : KeyType> getIndex(name: String, schema: ItemSchema.PartitionKey<T, PK>): Index.PartitionKey<T, PK>

Get an Index reference for performing secondary index operations

Inherited functions

Link copied to clipboard
abstract suspend fun putItem(request: PutItemRequest<T>): PutItemResponse<T>
Link copied to clipboard
suspend fun <T> Table<T>.putItem(item: T): PutItemResponse<T>