Package dev.frostlake.executor.copy
Class StageReaderFactory
java.lang.Object
dev.frostlake.executor.copy.StageReaderFactory
Selects the
StageFileReader for a record-based FILE_FORMAT TYPE. Readers are discovered once, at
class load, as a ServiceLoader SPI: the engine ships the JSON and XML providers, and the optional
frostlake-formats module contributes Avro/Parquet/ORC when it is on the classpath. Returns null
for CSV (which the loader reads on its own positional-text path) and for a type no provider handles (which
the loader rejects). The readers are stateless and shared.-
Method Summary
Modifier and TypeMethodDescriptionstatic StageFileReaderThe reader fortype, or null for CSV / a positional or unregistered format.static StringCSV plus every discovered record type, sorted — for the loader's "unsupported format" message.
-
Method Details
-
forType
The reader fortype, or null for CSV / a positional or unregistered format. -
supportedTypesDisplay
CSV plus every discovered record type, sorted — for the loader's "unsupported format" message.
-