Skip to content

//tempest2/app.cash.tempest2/AsyncInlineView

AsyncInlineView

[jvm]\ interface AsyncInlineView<K : Any, I : Any> : AsyncView<K, I> , AsyncScannable<K, I> , AsyncQueryable<K, I>

Types

Name Summary
Factory [jvm]
interface Factory

Functions

Name Summary
delete [jvm]
open suspend fun delete(item: I, deleteExpression: Expression? = null): I?
Deletes item from its DynamoDB table using deleteExpression. Any options specified in the deleteExpression parameter will be overlaid on any constraints due to versioned attributes.
deleteAsync [jvm]
open fun deleteAsync(item: I): CompletableFuture<I?>
abstract fun deleteAsync(item: I, deleteExpression: Expression?): CompletableFuture<I?>
deleteKey [jvm]
open suspend fun deleteKey(key: K, deleteExpression: Expression? = null): I?
Deletes the item identified by key from its DynamoDB table using deleteExpression. Any options specified in the deleteExpression parameter will be overlaid on any constraints due to versioned attributes.
deleteKeyAsync [jvm]
open fun deleteKeyAsync(key: K): CompletableFuture<I?>
abstract fun deleteKeyAsync(key: K, deleteExpression: Expression?): CompletableFuture<I?>
load [jvm]
open suspend fun load(key: K, consistentReads: Boolean = false): I?
Returns an item whose keys match those of the prototype key object given, or null if no such item exists.
[jvm]
open suspend fun load(key: K, consistentReads: Boolean = false, returnConsumedCapacity: ReturnConsumedCapacity = ReturnConsumedCapacity.TOTAL): Pair<I?, ConsumedCapacity?>
loadAsync [jvm]
open fun loadAsync(key: K): CompletableFuture<I?>
abstract fun loadAsync(key: K, consistentReads: Boolean): CompletableFuture<I?>
abstract fun loadAsync(key: K, consistentReads: Boolean, returnConsumedCapacity: ReturnConsumedCapacity): CompletableFuture<Pair<I?, ConsumedCapacity?>>
query [jvm]
open suspend fun query(keyCondition: KeyCondition<K>, asc: Boolean = true, pageSize: Int = 100, consistentRead: Boolean = false, filterExpression: Expression? = null, initialOffset: Offset<K>? = null, returnConsumedCapacity: ReturnConsumedCapacity? = null): Page<K, I>
Reads up to the pageSize items or a maximum of 1 MB of data. This limit applies before the filter expression is evaluated.
queryAsync [jvm]
open fun queryAsync(keyCondition: KeyCondition<K>): Publisher<Page<K, I>>
open fun queryAsync(keyCondition: KeyCondition<K>, initialOffset: Offset<K>?): Publisher<Page<K, I>>
open fun queryAsync(keyCondition: KeyCondition<K>, config: QueryConfig): Publisher<Page<K, I>>
open fun queryAsync(keyCondition: KeyCondition<K>, config: QueryConfig, initialOffset: Offset<K>?): Publisher<Page<K, I>>
abstract fun queryAsync(keyCondition: KeyCondition<K>, asc: Boolean, pageSize: Int, consistentRead: Boolean, filterExpression: Expression?, initialOffset: Offset<K>?, returnConsumedCapacity: ReturnConsumedCapacity?): Publisher<Page<K, I>>
save [jvm]
open suspend fun save(item: I, saveExpression: Expression? = null): Void
Saves an item in DynamoDB. This method uses DynamoDbClient.putItem to clear and replace all attributes, including unmodeled ones, on save. Partial update, i.e. DynamoDbClient.updateItem, is not supported yet.
saveAsync [jvm]
open fun saveAsync(item: I): CompletableFuture<Void>
abstract fun saveAsync(item: I, saveExpression: Expression?): CompletableFuture<Void>
scan [jvm]
open suspend fun scan(pageSize: Int = 100, consistentRead: Boolean = false, filterExpression: Expression? = null, initialOffset: Offset<K>? = null): Page<K, I>
Scans up to the pageSize items or a maximum of 1 MB of data. This limit applies before the filter expression is evaluated.
scanAsync [jvm]
open fun scanAsync(): Publisher<Page<K, I>>
open fun scanAsync(initialOffset: Offset<K>?): Publisher<Page<K, I>>
open fun scanAsync(config: ScanConfig): Publisher<Page<K, I>>
open fun scanAsync(config: ScanConfig, initialOffset: Offset<K>?): Publisher<Page<K, I>>
abstract fun scanAsync(pageSize: Int = 100, consistentRead: Boolean = false, filterExpression: Expression? = null, initialOffset: Offset<K>? = null): Publisher<Page<K, I>>