ClickHouseDatasetAutoConfiguration

@AutoConfiguration(before = [QueryAutoConfiguration::class])
@ConditionalOnClass(value = [ClickHouseDatasetQueryBackendFactory::class])
@ConditionalOnProperty(prefix = "wow.query.clickhouse", name = ["enabled"], havingValue = "true")
@EnableConfigurationProperties(value = [ClickHouseDatasetProperties::class])
class ClickHouseDatasetAutoConfiguration

Serves the datasets of wow.query.datasets from ClickHouse when wow-clickhouse is on the classpath (clickhouse-support) and wow.query.clickhouse.enabled is true: a ClickHouse client over the configured endpoints, and the dataset query backend the Catalog and the dataset gateways read.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
@Bean(destroyMethod = "close")
@ConditionalOnMissingBean
fun clickHouseDatasetClient(properties: ClickHouseDatasetProperties): Client
Link copied to clipboard
@Bean(destroyMethod = "close")
@ConditionalOnMissingBean
fun clickHouseDatasetSources(properties: ClickHouseDatasetProperties): ClickHouseDatasetSources

The named sources of wow.query.clickhouse.sources, each over its own client.

Link copied to clipboard
@Bean
@ConditionalOnMissingBean
fun clickHouseExecutor(client: Client): ClickHouseExecutor