Class FormatReaderRegistry
java.lang.Object
org.elasticsearch.xpack.esql.datasources.FormatReaderRegistry
Registry for FormatReader implementations, keyed by format name and file extension.
Readers are created lazily on first access to avoid pulling in heavy dependencies at startup.
Supports compound extensions (e.g. .csv.gz) via
DecompressionCodecRegistry.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyExtension(String objectName) findByName(String formatName) Look up a format reader by name, returning null if not registered.booleanhasCompressedExtension(String objectName) Returns true if the object name has a compound extension (e.g.booleanhasExtension(String extension) booleanvoidregisterExtension(String extension, String formatName) voidregisterLazy(String formatName, FormatReaderFactory factory, Settings settings, BlockFactory blockFactory) unregister(String formatName)
-
Constructor Details
-
FormatReaderRegistry
-
-
Method Details
-
registerLazy
public void registerLazy(String formatName, FormatReaderFactory factory, Settings settings, BlockFactory blockFactory) -
unregister
-
byName
-
findByName
Look up a format reader by name, returning null if not registered. Use for speculative lookups where a missing format is normal (e.g., optimizer probing). -
registerExtension
-
byExtension
-
hasCompressedExtension
Returns true if the object name has a compound extension (e.g. .csv.gz) that is supported: the last extension is a known compression extension and the stripped path has a format. -
hasFormat
-
hasExtension
-