Skip to content

//musiclibrary2/app.cash.tempest2.musiclibrary/AsyncMusicTable

AsyncMusicTable

[jvm]\ interface AsyncMusicTable : AsyncLogicalTable<MusicItem>

Properties

Name Summary
albumInfo [jvm]
abstract val albumInfo: AsyncInlineView<AlbumInfo.Key, AlbumInfo>
albumInfoByArtist [jvm]
abstract val albumInfoByArtist: AsyncSecondaryIndex<AlbumInfo.ArtistIndexOffset, AlbumInfo>
albumInfoByGenre [jvm]
abstract val albumInfoByGenre: AsyncSecondaryIndex<AlbumInfo.GenreIndexOffset, AlbumInfo>
albumTracks [jvm]
abstract val albumTracks: AsyncInlineView<AlbumTrack.Key, AlbumTrack>
albumTracksByTitle [jvm]
abstract val albumTracksByTitle: AsyncSecondaryIndex<AlbumTrack.TitleIndexOffset, AlbumTrack>
playlistInfo [jvm]
abstract val playlistInfo: AsyncInlineView<PlaylistInfo.Key, PlaylistInfo>

Functions

Name Summary
codec [jvm]
abstract fun <T : Any> codec(type: KClass<T>): Codec<T, MusicItem>
delete [jvm]
open suspend fun delete(item: MusicItem, deleteExpression: Expression?): MusicItem?
deleteAsync [jvm]
open fun deleteAsync(item: MusicItem): CompletableFuture<MusicItem?>
abstract fun deleteAsync(item: MusicItem, deleteExpression: Expression?): CompletableFuture<MusicItem?>
deleteKey [jvm]
open suspend fun deleteKey(key: MusicItem, deleteExpression: Expression?): MusicItem?
deleteKeyAsync [jvm]
open fun deleteKeyAsync(key: MusicItem): CompletableFuture<MusicItem?>
abstract fun deleteKeyAsync(key: MusicItem, deleteExpression: Expression?): CompletableFuture<MusicItem?>
inlineView [jvm]
abstract fun <K : Any, I : Any> inlineView(keyType: KClass<K>, itemType: KClass<I>): AsyncInlineView<K, I>
load [jvm]
open suspend fun load(key: MusicItem, consistentReads: Boolean): MusicItem?
open suspend fun load(key: MusicItem, consistentReads: Boolean, returnConsumedCapacity: ReturnConsumedCapacity): Pair<MusicItem?, ConsumedCapacity?>
loadAsync [jvm]
open fun loadAsync(key: MusicItem): CompletableFuture<MusicItem?>
abstract fun loadAsync(key: MusicItem, consistentReads: Boolean): CompletableFuture<MusicItem?>
abstract fun loadAsync(key: MusicItem, consistentReads: Boolean, returnConsumedCapacity: ReturnConsumedCapacity): CompletableFuture<Pair<MusicItem?, ConsumedCapacity?>>
save [jvm]
open suspend fun save(item: MusicItem, saveExpression: Expression?): Void
saveAsync [jvm]
open fun saveAsync(item: MusicItem): CompletableFuture<Void>
abstract fun saveAsync(item: MusicItem, saveExpression: Expression?): CompletableFuture<Void>
secondaryIndex [jvm]
abstract fun <K : Any, I : Any> secondaryIndex(keyType: KClass<K>, itemType: KClass<I>): AsyncSecondaryIndex<K, I>