CompositeKey
interface CompositeKey<T, PK : KeyType, SK : KeyType> : Table<T> , TableSpec.CompositeKey<T, PK, SK> , TableOperations.CompositeKey<T, PK, SK> , ItemSource.CompositeKey<T, PK, SK>
Represents a table whose primary key is a composite of a partition key and a sort key
Type Parameters
Inherited properties
Link copied to clipboard
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
Inherited functions
Link copied to clipboard
abstract suspend fun deleteItem(request: DeleteItemRequest.CompositeKey<PK, SK>): DeleteItemResponse<T>
Link copied to clipboard
suspend fun <T, PK : KeyType, SK : KeyType> Table.CompositeKey<T, PK, SK>.deleteItem(item: T): DeleteItemResponse<T>
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
Link copied to clipboard
Link copied to clipboard
abstract suspend fun query(request: QueryRequest.CompositeKey<PK, SK>): QueryResponse.CompositeKey<T, PK, SK>
Link copied to clipboard
abstract suspend fun scan(request: ScanRequest.CompositeKey<PK, SK>): ScanResponse.CompositeKey<T, PK, SK>
Link copied to clipboard
abstract suspend fun updateItem(request: UpdateItemRequest.CompositeKey<PK, SK>): UpdateItemResponse<T>