Package-level declarations

Types

Link copied to clipboard
class ClickHouseDatasetTableInspector(executor: ClickHouseExecutor, defaultDatabase: String, sources: Map<String, ClickHouseSource> = emptyMap()) : DatasetTableInspector

Drafts a dataset from a ClickHouse table, database.table or a table of its source's default database, by its system.columns (ClickHouseDatasetDrafts): in the default source (executor, defaultDatabase) or in one of the named sources.

Link copied to clipboard

Proves this instance can serve a dataset before the registry publishes it: its name is not an aggregate's of its context nor a declaration file's dataset, a dataset backend serves datasets here, and the declaration compiles against its table as the Catalog will compile it.

Link copied to clipboard
@ConditionalOnProperty(value = ["wow.dataset-registry.enabled"], matchIfMissing = true, havingValue = "true")
@ConditionalOnBean(value = [QueryDatasets::class])
@EnableConfigurationProperties(value = [DatasetRegistryProperties::class])
class DatasetRegistryAutoConfiguration

Embeds the dataset registry (dataset platform design §4) in a Wow service: the Dataset aggregate's ports, and the projection that serves its published datasets on this instance beside those of wow.query.datasets.

Link copied to clipboard

The HTTP status of each of the dataset registry's error codes.

Link copied to clipboard
class DatasetRegistryProjection(datasets: QueryDatasets, source: PublishedDatasetSource, interval: Duration) : SmartLifecycle

Serves the registry's published datasets on this instance (dataset platform design §4.3): it reads them now and every interval, and adds, replaces or removes them in datasets. Reading the published versions, rather than following the registry's events, lets every instance converge on them whichever one handled a command.

Link copied to clipboard
@ConfigurationProperties(prefix = "wow.dataset-registry")
class DatasetRegistryProperties(var enabled: Boolean = true, var refreshInterval: Duration = Duration.ofSeconds(30)) : EnabledCapable

The dataset registry's settings.

Link copied to clipboard
data class PublishedDataset(val name: String, val version: Int, val document: ObjectNode)

One published dataset: its name ({context}.{dataset}), its version and the declaration served.

Link copied to clipboard

Where the projection reads the published datasets from.

Link copied to clipboard

The published datasets of the registry's snapshots.