//musiclibrary2/app.cash.tempest2.musiclibrary/MusicTable
MusicTable¶
[jvm]\ interface MusicTable : LogicalTable<MusicItem>
Properties¶
Name | Summary |
---|---|
albumInfo | [jvm] abstract val albumInfo: InlineView<AlbumInfo.Key, AlbumInfo> |
albumInfoByArtist | [jvm] abstract val albumInfoByArtist: SecondaryIndex<AlbumInfo.ArtistIndexOffset, AlbumInfo> |
albumInfoByGenre | [jvm] abstract val albumInfoByGenre: SecondaryIndex<AlbumInfo.GenreIndexOffset, AlbumInfo> |
albumInfoByLabel | [jvm] abstract val albumInfoByLabel: SecondaryIndex<AlbumInfo.LabelIndexOffset, AlbumInfo> |
albumTracks | [jvm] abstract val albumTracks: InlineView<AlbumTrack.Key, AlbumTrack> |
albumTracksByTitle | [jvm] abstract val albumTracksByTitle: SecondaryIndex<AlbumTrack.TitleIndexOffset, AlbumTrack> |
playlistInfo | [jvm] abstract val playlistInfo: InlineView<PlaylistInfo.Key, PlaylistInfo> |
Functions¶
Name | Summary |
---|---|
codec | [jvm] abstract fun <T : Any> codec(type: KClass<T>): Codec<T, MusicItem> |
delete | [jvm] open fun delete(item: MusicItem): MusicItem? abstract fun delete(item: MusicItem, deleteExpression: Expression?): MusicItem? |
deleteKey | [jvm] open fun deleteKey(key: MusicItem): MusicItem? abstract fun deleteKey(key: MusicItem, deleteExpression: Expression?): MusicItem? |
inlineView | [jvm] abstract fun <K : Any, I : Any> inlineView(keyType: KClass<K>, itemType: KClass<I>): InlineView<K, I> |
load | [jvm] open fun load(key: MusicItem): MusicItem? abstract fun load(key: MusicItem, consistentReads: Boolean): MusicItem? abstract fun load(key: MusicItem, consistentReads: Boolean, returnConsumedCapacity: ReturnConsumedCapacity): Pair<MusicItem?, ConsumedCapacity?> |
save | [jvm] open fun save(item: MusicItem) abstract fun save(item: MusicItem, saveExpression: Expression?) |
secondaryIndex | [jvm] abstract fun <K : Any, I : Any> secondaryIndex(keyType: KClass<K>, itemType: KClass<I>): SecondaryIndex<K, I> |