PartitionKey

Represents a table whose primary key is a single partition key

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

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

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

Inherited functions

Link copied to clipboard
Link copied to clipboard
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

Link copied to clipboard
abstract suspend fun getItem(request: GetItemRequest.PartitionKey<PK>): GetItemResponse<T>
Link copied to clipboard
suspend fun <T, PK : KeyType> Table.PartitionKey<T, PK>.getItem(item: T): GetItemResponse<T>
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>
Link copied to clipboard
Link copied to clipboard
abstract suspend fun scan(request: ScanRequest.PartitionKey<PK>): ScanResponse.PartitionKey<T, PK>
Link copied to clipboard