Interface ConnectorFactory
- All Superinterfaces:
ExternalSourceFactory
Factory for creating connectors to external data sources.
Each factory handles a specific protocol or source type (e.g. "flight", "jdbc").
Schema resolution lives here to avoid creating throwaway
Connector instances.-
Method Summary
Methods inherited from interface org.elasticsearch.xpack.esql.datasources.spi.ExternalSourceFactory
canHandle, filterPushdownSupport, operatorFactory, resolveMetadataAsync, splitProvider, validateConfig
-
Method Details
-
type
String type()- Specified by:
typein interfaceExternalSourceFactory
-
canHandle
- Specified by:
canHandlein interfaceExternalSourceFactory
-
resolveMetadata
- Specified by:
resolveMetadatain interfaceExternalSourceFactory- Parameters:
config- configuration map. Values are typed asObject: secret values may arrive asSecureString, non-secrets retain their underlying type (String,Integer,Long,Boolean). UseObjects.toString(config.get(key), null)or pattern-match on type — casting directly toStringwill throwClassCastExceptionon non-String values.
-
open
- Parameters:
config- configuration map; seeresolveMetadata(String, Map)for typing rules.
-