ViewPaths

object ViewPaths

ViewPaths

=========

Centralized path helpers shared by CSVView and ParquetView.

Responsibilities

  • Create and cache the container folder per run.

  • Provide subfolders:

  • CSV → <container>/CSV/

  • Parquet → <container>/Parquet/

  • Generate deterministic, timestamp-free filenames that include the executed target token.

  • Append "sd<seed>" to filenames if an explicit CLI seed (--seed) was provided.

Safety

  • All directory creation is idempotent: existing folders are reused.

  • Only invoked at run startup or when writing output.

Functions

Link copied to clipboard
fun csvNameNoTs(baseParts: Array<String>, suffix: String): String

Build a CSV filename (without timestamp).

Link copied to clipboard
fun csvNameNoTsMerged(baseParts: Array<String>, suffix: String): String

Build a merged CSV filename (without timestamp).

Link copied to clipboard

Ensure the CSV subdirectory exists and return its path.

Link copied to clipboard

Ensure the Parquet subdirectory exists and return its path.

Link copied to clipboard

Ensure the shared container folder for this run exists and cache its path.

Link copied to clipboard

Assemble the core parts of a base filename for a given run and target.

Link copied to clipboard
fun parquetNameNoTs(baseParts: Array<String>, suffix: String): String

Build a Parquet filename (without timestamp).