CachingFederationStrategy
provided by the catalog-core-standardframework
bundle.@Deprecated public class SortedFederationStrategy extends AbstractFederationStrategy
FederationStrategy
based on sorting Metacard
s. The sorting is based on the Query
's SortBy
propertyName. The possible
sorting values are Metacard.EFFECTIVE
, Result.TEMPORAL
, Result.DISTANCE
,
or Result.RELEVANCE
. The supported ordering includes SortOrder.DESCENDING
and
SortOrder.ASCENDING
. For this class to function properly a sort value and sort order must
be provided.Modifier and Type | Field and Description |
---|---|
protected static Comparator<Result> |
DEFAULT_COMPARATOR
Deprecated.
The default comparator for sorting by
Result.RELEVANCE , SortOrder.DESCENDING |
postQuery, preQuery
Constructor and Description |
---|
SortedFederationStrategy(ExecutorService queryExecutorService,
List<PreFederatedQueryPlugin> preQuery,
List<PostFederatedQueryPlugin> postQuery)
Deprecated.
Instantiates a
SortedFederationStrategy with the provided ExecutorService . |
Modifier and Type | Method and Description |
---|---|
protected Runnable |
createMonitor(ExecutorService pool,
Map<Source,Future<SourceResponse>> futures,
QueryResponseImpl returnResults,
Query query)
Deprecated.
Creates the monitor for federated queries.
|
federate, setMaxStartIndex
protected static final Comparator<Result> DEFAULT_COMPARATOR
Result.RELEVANCE
, SortOrder.DESCENDING
public SortedFederationStrategy(ExecutorService queryExecutorService, List<PreFederatedQueryPlugin> preQuery, List<PostFederatedQueryPlugin> postQuery)
SortedFederationStrategy
with the provided ExecutorService
.queryExecutorService
- the ExecutorService
for queriesprotected Runnable createMonitor(ExecutorService pool, Map<Source,Future<SourceResponse>> futures, QueryResponseImpl returnResults, Query query)
AbstractFederationStrategy
createMonitor
in class AbstractFederationStrategy
returnResults
- the query resultsRunnable
This work is licensed under a Creative Commons Attribution 4.0 International License.