QueryDatasetFiles

class QueryDatasetFiles @JvmOverloads constructor(configDirectory: Path = Path.of("config"), classLoader: ClassLoader = Thread.currentThread().contextClassLoader ?: QueryDatasetFiles::class.java.classLoader)

Reads the dataset files (datasets are declared in files, not in the Manifest), one per dataset, named {context}.{dataset}.json in the QueryDatasetProperties format: from the working directory's <configDirectory>/wow/dataset/, which takes precedence, else from the classpath's META-INF/wow/dataset/.

Every failure to find, read or parse a file is a QuerySchemaUnavailableException whose cause says what is wrong.

Constructors

Link copied to clipboard
constructor(configDirectory: Path = Path.of("config"), classLoader: ClassLoader = Thread.currentThread().contextClassLoader ?: QueryDatasetFiles::class.java.classLoader)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The working directory the dataset files are read from first.

Functions

Link copied to clipboard

The dataset name declares in its file.

Link copied to clipboard

The datasets of names, each loaded.

Link copied to clipboard

Every dataset whose file is in the working directory; none when it does not exist.