Interface QueryEngineRouter


public interface QueryEngineRouter
Resolves a QueryEngine for a given source.
  • Method Details

    • engineFor

      Resolves a QueryEngine for a given QualifiedPath. The method determines the appropriate QueryEngine based 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 Optional containing the resolved QueryEngine, or an empty Optional if no engine is available for the given path
    • engineFor

      Optional<QueryEngine> engineFor(String providerId)
      Resolves a QueryEngine based on the specified provider ID.
      Parameters:
      providerId - the unique identifier for the desired query engine provider.
      Returns:
      an Optional containing the QueryEngine if a matching provider is found, or an empty Optional if no matching provider is available.