ActiveDataSet

interface ActiveDataSet<T : Any> : DataSet<T>

Functions

flowData
Link copied to clipboard
common
abstract fun flowData(): Flow<NamedData<T>>

Traverse this provider or its child. The order is not guaranteed.

getData
Link copied to clipboard
common
abstract suspend fun getData(name: Name): Data<T>?

Get data with given name.

listTop
Link copied to clipboard
common
open suspend fun listTop(prefix: Name = Name.EMPTY): List<Name>

Get a snapshot of names of top level children of given node. Empty if node does not exist or is a leaf.

Properties

dataType
Link copied to clipboard
common
abstract val dataType: KType

The minimal common ancestor to all data in the node

updates
Link copied to clipboard
common
abstract val updates: Flow<Name>

A flow of updated item names. Updates are propagated in a form of Flow of names of updated nodes. Those can include new data items and replacement of existing ones. The replaced items could update existing data content and replace it completely, so they should be pulled again.

Inheritors

ActiveDataTree
Link copied to clipboard