Package-level declarations

Types

Link copied to clipboard
fun interface CredentialResolver

Resolves the credentials for a database connection at run time, from the credential-free reference. Front-ends supply their own resolver (e.g. a Swing dialog for RuntimePrompt), typically delegating the non-interactive cases to DefaultCredentialResolver.

Link copied to clipboard

Reads numeric datasets from a database table or query. Resolves the connection, runs the table/query, converts the result set to a Kotlin DataFrame, and extracts numeric columns per the requested layout.

Link copied to clipboard
fun interface DatasetImporter

Resolves a serializable DataSourceReference into a list of in-memory numeric datasets. Implementations are expected to be pure functions of their reference plus the file system / inline data; no side effects on shared state.

Link copied to clipboard
data class DbCredentials(val username: String, val password: String)

Resolved database credentials. Deliberately NOT serializable — secrets are resolved at run time and never cross the wire or land in a config.

Link copied to clipboard

Non-interactive credential resolution:

Link copied to clipboard
class DefaultDatasetImporter(credentialResolver: CredentialResolver = DefaultCredentialResolver) : DatasetImporter

Default importer: dispatches on the reference variant and the (layout, delimiter) pair, delegating to existing KSL IO helpers.

Link copied to clipboard
class ImportException(message: String, cause: Throwable? = null) : RuntimeException

Raised by the importer when a data source cannot be resolved into one or more non-empty numeric datasets. Causes include: missing file, layout / delimiter mismatch, missing or empty id / value columns, non-numeric values where numbers are required, and empty inline maps.

Link copied to clipboard
data class NamedDataset(val name: String, val data: DoubleArray)

One numeric series tagged with a human-readable label. The label typically carries source provenance (originating column header, id value, file stem, or inline key) so downstream reports and event traffic can identify the dataset without an external lookup.

Link copied to clipboard

Reshape helpers for moving between wide and long tabular layouts.