QueryDatasetConfig

class QueryDatasetConfig @InternalWowApi constructor(val type: String, val options: Map<String, String> = emptyMap(), val resources: StoreResources = StoreResources.NONE)

What a QueryDatasetProvider opens from: its type, its settings (options, wow.<type>.* relative to it) and the application's resources. Fields may be added: the host builds it, so the constructor is internal to Wow; a provider's test builds one with of.

Constructors

Link copied to clipboard
constructor(type: String, options: Map<String, String> = emptyMap(), resources: StoreResources = StoreResources.NONE)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val key: String

The configuration key of its settings, wow.<type>, for a provider's failures to name.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun <T : Any> option(option: ProviderOption.Defaulted<T>): T

The value of the ProviderOption.Defaulted option: its setting, parsed, else its default, so always one.

fun <T : Any> option(option: ProviderOption<T>): T?

The value of option: its setting, parsed, else its default.

Link copied to clipboard
fun options(prefix: String): Map<String, String>

The settings under prefix, relative to it (query.settings.max_threads under query.settings).

The settings under the map option (ProviderOption.map), their keys relative to it.

Link copied to clipboard
open override fun toString(): String