QueryDatasets

class QueryDatasets(datasets: Collection<QueryDataset> = emptyList())

The datasets this instance serves, by name. Datasets join and leave at run time (dataset platform design §4.3): declaration files at startup, a registry's published versions afterwards. Reads take no lock; changes are serialized and reach every listener before the next one starts.

Constructors

Link copied to clipboard
constructor(datasets: Collection<QueryDataset> = emptyList())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

The schema source of the datasets' fields: a dataset's declaration is the base of its model, as inference is for an aggregate's, and other sources (a declaration file, a bean) may enrich it at a higher priority.

Functions

Link copied to clipboard
fun add(dataset: QueryDataset)

Adds dataset; refused when a dataset of that name is already here, or a listener refuses it.

Link copied to clipboard
operator fun get(namedAggregate: NamedAggregate): QueryDataset?
Link copied to clipboard

Follows every later change; the datasets already here are all.

Link copied to clipboard

The profile of context's model: the dataset's own for QueryModel.DATASET, the built-in one otherwise.

Link copied to clipboard
fun remove(namedAggregate: NamedAggregate): Boolean

Removes the dataset of namedAggregate; false when there is none.

Link copied to clipboard
fun replace(dataset: QueryDataset)

Replaces the dataset of dataset's name with this declaration; refused when there is none.