Interface StageFileLocator
- All Known Implementing Classes:
StageFileResolver
public interface StageFileLocator
Callback
TO_FILE uses to turn a stage reference such as @stage/dir/file.txt into the
file it names — the seam that lets the FILE functions read real stage metadata without depending on
the executor class itself. Mirrors dev.frostlake.functions.table.QueryRunner, and exists
instead of a Function<String, StagedFile> per the project's no-functional-interfaces rule.-
Method Summary
Modifier and TypeMethodDescriptionResolve a stage reference to the file it names.
-
Method Details
-
locate
Resolve a stage reference to the file it names.- Parameters:
location- a stage reference:@stage/path,@db.schema.stage/path,@~/pathor@%table/path- Returns:
- the resolved file, or null when the reference names no stage this engine can reach (the caller turns that into Snowflake's "was not found" error)
-