Interface QueryEngineRouter
public interface QueryEngineRouter
Resolves a
QueryEngine for a given source.-
Method Summary
Modifier and TypeMethodDescriptionengineFor(QualifiedPath path) Resolves aQueryEnginefor a givenQualifiedPath.Resolves aQueryEnginebased on the specified provider ID.
-
Method Details
-
engineFor
Resolves aQueryEnginefor a givenQualifiedPath. The method determines the appropriateQueryEnginebased on the provided path and returns it if available.- Parameters:
path- the qualified path for which the query engine is needed; must not be null- Returns:
- an
Optionalcontaining the resolvedQueryEngine, or an emptyOptionalif no engine is available for the given path
-
engineFor
Resolves aQueryEnginebased on the specified provider ID.- Parameters:
providerId- the unique identifier for the desired query engine provider.- Returns:
- an
Optionalcontaining theQueryEngineif a matching provider is found, or an emptyOptionalif no matching provider is available.
-