Class DecompressionCodecRegistry
java.lang.Object
org.elasticsearch.xpack.esql.datasources.DecompressionCodecRegistry
Registry for
DecompressionCodec implementations, keyed by extension.
Populated from DataSourcePlugin.decompressionCodecs(Settings) at startup.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyExtension(String extension) Look up a codec by extension (e.g.booleanhasCompressionExtension(String extension) Returns true if the given extension is a known compression extension.voidregister(DecompressionCodec codec) Register a codec and its extensions.stripCompressionSuffix(String objectName) If the object name ends with a known compression extension, strips it and returns the inner name (e.g.
-
Constructor Details
-
DecompressionCodecRegistry
public DecompressionCodecRegistry()
-
-
Method Details
-
register
Register a codec and its extensions. -
byExtension
Look up a codec by extension (e.g. ".gz"). -
hasCompressionExtension
Returns true if the given extension is a known compression extension. -
stripCompressionSuffix
If the object name ends with a known compression extension, strips it and returns the inner name (e.g. "data.csv.gz" -> "data.csv"). Otherwise returns null.
-