Interface FormatScanner

All Known Implementing Classes:
CsvFormatScanner, ParquetFormatScanner

public interface FormatScanner
Service Provider Interface (SPI) for scanning and streaming tabular data formats lazily. Discovered at runtime via ServiceLoader.
  • Method Summary

    Modifier and Type
    Method
    Description
    Unique format identifier handled by this scanner (e.g., "csv", "json", "parquet").
    scan(ScanOptions options)
    Creates a LazySource configured with the given scan options.
  • Method Details

    • format

      String format()
      Unique format identifier handled by this scanner (e.g., "csv", "json", "parquet"). Matching is case-insensitive.
      Returns:
      lowercase format name
    • scan

      LazySource scan(ScanOptions options)
      Creates a LazySource configured with the given scan options.
      Parameters:
      options - scan options containing source file, path, schema, delimiter, etc.
      Returns:
      configured LazySource