Package ddf.catalog.util.impl
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.
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 TypeMethodDescriptionddf.catalog.operation.SourceResponsequery(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 requiredSourceis unavailableddf.catalog.source.UnsupportedQueryException- if theQuerycan not be evaluated by thisCatalogFrameworkor any of itsSources.ddf.catalog.federation.FederationException- if theQueryRequestincludesFederatedSources and there is either a problem connecting to aFederatedSourceor aFederatedSourcecannot evaluate theQuery
-