Package com.cupoftea.spi
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 TypeMethodDescriptionformat()Unique format identifier handled by this scanner (e.g., "csv", "json", "parquet").scan(ScanOptions options) Creates aLazySourceconfigured 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
Creates aLazySourceconfigured with the given scan options.- Parameters:
options- scan options containing source file, path, schema, delimiter, etc.- Returns:
- configured LazySource
-