Class StagedFile

java.lang.Object
dev.frostlake.functions.scalar.file.StagedFile

public final class StagedFile extends Object
A stage reference resolved to a concrete file: where it lives on disk, plus the two descriptor fields that identify it inside its stage.

getStage() is the canonical display Snowflake puts in a FILE descriptor's STAGE field, measured live: a named stage renders fully qualified and upper-cased (@PROBE_DB.S.SSE) however it was written at the call site, the user stage renders @"~", and a table stage renders just the bare table name (@TSTG) with no database or schema. getRelativePath() is the path within the stage with no leading slash, and it keeps its sub-directories (sub/nested.txt, p135/hello.txt).

  • Constructor Details

    • StagedFile

      public StagedFile(Path path, String stage, String relativePath)
  • Method Details

    • getPath

      public Path getPath()
      Where the staged file actually lives on this machine.
    • getStage

      public String getStage()
      The descriptor's STAGE field, e.g. @DB.SCHEMA.NAME.
    • getRelativePath

      public String getRelativePath()
      The descriptor's RELATIVE_PATH field, e.g. sub/nested.txt.