public abstract class IterativeMergeStrategy extends Object implements MergeStrategy
Modifier and Type | Class and Description |
---|---|
static class |
IterativeMergeStrategy.CallBack |
Modifier and Type | Field and Description |
---|---|
protected ExecutorService |
executorService |
protected static org.apache.http.client.HttpClient |
httpClient |
MERGE_COMP
Constructor and Description |
---|
IterativeMergeStrategy() |
Modifier and Type | Method and Description |
---|---|
List<Future<IterativeMergeStrategy.CallBack>> |
callBack(List<ShardResponse> responses,
QueryRequest req) |
Future<IterativeMergeStrategy.CallBack> |
callBack(ShardResponse response,
QueryRequest req) |
int |
getCost()
Defines the order that the mergeStrategies are applied.
|
void |
handleMergeFields(ResponseBuilder rb,
SolrIndexSearcher searcher)
Implement handleMergeFields(ResponseBuilder rb, SolrIndexSearch searcher) if
your merge strategy needs more complex data then the sort fields provide.
|
boolean |
handlesMergeFields()
handlesMergeFields must return true if the MergeStrategy
implements a custom handleMergeFields(ResponseBuilder rb, SolrIndexSearch searcher)
|
void |
merge(ResponseBuilder rb,
ShardRequest sreq)
merge defines the merging behaving of results that are collected from the
shards during a distributed search.
|
boolean |
mergesIds()
mergesIds must return true if the merge method merges document ids from the shards.
|
protected abstract void |
process(ResponseBuilder rb,
ShardRequest sreq) |
protected ExecutorService executorService
protected static org.apache.http.client.HttpClient httpClient
public void merge(ResponseBuilder rb, ShardRequest sreq)
MergeStrategy
merge
in interface MergeStrategy
public boolean mergesIds()
MergeStrategy
mergesIds
in interface MergeStrategy
public int getCost()
MergeStrategy
getCost
in interface MergeStrategy
public boolean handlesMergeFields()
MergeStrategy
handlesMergeFields
in interface MergeStrategy
public void handleMergeFields(ResponseBuilder rb, SolrIndexSearcher searcher)
MergeStrategy
handleMergeFields
in interface MergeStrategy
public List<Future<IterativeMergeStrategy.CallBack>> callBack(List<ShardResponse> responses, QueryRequest req)
public Future<IterativeMergeStrategy.CallBack> callBack(ShardResponse response, QueryRequest req)
protected abstract void process(ResponseBuilder rb, ShardRequest sreq) throws Exception
Exception
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.