Interface QueryFunction

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface QueryFunction
Functional interface used to abstract away methods that take in a QueryRequest and return a SourceResponse. Used by classes such as ResultIterable to support interfaces other than CatalogFramework.
  • Method Summary

    Modifier and Type
    Method
    Description
    ddf.catalog.operation.SourceResponse
    query(ddf.catalog.operation.QueryRequest queryRequest)
    Runs a query.
  • Method Details

    • query

      ddf.catalog.operation.SourceResponse query(ddf.catalog.operation.QueryRequest queryRequest) throws ddf.catalog.source.UnsupportedQueryException, ddf.catalog.source.SourceUnavailableException, ddf.catalog.federation.FederationException
      Runs a query.
      Parameters:
      queryRequest - request to use
      Returns:
      source response
      Throws:
      ddf.catalog.source.SourceUnavailableException - if a required Source is unavailable
      ddf.catalog.source.UnsupportedQueryException - if the Query can not be evaluated by this CatalogFramework or any of its Sources.
      ddf.catalog.federation.FederationException - if the QueryRequest includes FederatedSources and there is either a problem connecting to a FederatedSource or a FederatedSource cannot evaluate the Query