Class StageReaderFactory

java.lang.Object
dev.frostlake.executor.copy.StageReaderFactory

public final class StageReaderFactory extends Object
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 Details

    • forType

      public static StageFileReader forType(String type)
      The reader for type, or null for CSV / a positional or unregistered format.
    • supportedTypesDisplay

      public static String supportedTypesDisplay()
      CSV plus every discovered record type, sorted — for the loader's "unsupported format" message.