Package ddf.catalog.federation
Interface FederationStrategy
public interface FederationStrategy
Implementations of this interface federate the specified query to all the
Sources in the
list, process the Results in a unique way, and then return the results
to the client.
For example, implementations can choose to block until all SourceResponses return then do a mass sort, or to return the results back
to the client as soon as they are received back from a FederatedSource.
-
Method Summary
Modifier and TypeMethodDescriptionfederate(List<Source> sources, QueryRequest query) Federate the given query to theListofSources, returning aQueryResponseback to the user that will include the matchingResults.
-
Method Details
-
federate
Federate the given query to theListofSources, returning aQueryResponseback to the user that will include the matchingResults.- Parameters:
sources- theListofSources to be queried. Cannot benullor empty.query- theQueryRequestto execute. Cannot benull.- Returns:
QueryResponsewhich contains the list ofResults.- Throws:
FederationException
-