Package ddf.catalog.plugin
Class PreFederatedLocalProviderQueryPlugin
java.lang.Object
ddf.catalog.plugin.PreFederatedLocalProviderQueryPlugin
- All Implemented Interfaces:
PreFederatedQueryPlugin
public abstract class PreFederatedLocalProviderQueryPlugin
extends Object
implements PreFederatedQueryPlugin
The
PreFederatedLocalProviderQueryPlugin is an abstract class implementing the PreFederatedQueryPlugin. A PreFederatedQueryPlugin that applies only for local Sources should extend the PreFederatedLocalProviderQueryPlugin. This abstract class
provides the isLocalSource(ddf.catalog.source.Source) method to check if a given Source is a local Source.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPreFederatedLocalProviderQueryPlugin(List<CatalogProvider> catalogProviders) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisLocalSource(Source source) Given a source, determine if it is a registered catalog provider or a cache.abstract QueryRequestprocess(Source source, QueryRequest input) Processes aQueryRequestprior to execution of the FederatedQuery.
-
Field Details
-
catalogProviders
-
-
Constructor Details
-
PreFederatedLocalProviderQueryPlugin
-
-
Method Details
-
isLocalSource
Given a source, determine if it is a registered catalog provider or a cache. -
process
public abstract QueryRequest process(Source source, QueryRequest input) throws StopProcessingException Description copied from interface:PreFederatedQueryPluginProcesses aQueryRequestprior to execution of the FederatedQuery.- Specified by:
processin interfacePreFederatedQueryPlugin- Parameters:
source- theSourcethe query will be sent toinput- theQueryRequestto process- Returns:
- the value of the processed
QueryRequestto pass to the nextPreFederatedQueryPlugin, or if this is the lastPreFederatedQueryPluginto be called - Throws:
StopProcessingException- thrown to halt processing when a critical issue occurs during processing. This is intended to prevent other plugins from processing as well.
-