public class InterleavedSearchInvoker extends SearchInvoker
SearchInvoker
objects to interface with content
nodes in parallel. Operationally it first sends requests to all contained invokers and then
collects the results. The user of this class is responsible for merging the results if needed.Constructor and Description |
---|
InterleavedSearchInvoker(Map<Integer,SearchInvoker> invokers) |
Modifier and Type | Method and Description |
---|---|
protected List<Result> |
getSearchResults(CacheKey cacheKey) |
protected void |
release() |
protected void |
sendSearchRequest(Query query,
QueryPacket queryPacket)
Sends search queries to the contained
SearchInvoker sub-invokers. |
search
close, teardown
public InterleavedSearchInvoker(Map<Integer,SearchInvoker> invokers)
protected void sendSearchRequest(Query query, QueryPacket queryPacket) throws IOException
SearchInvoker
sub-invokers. If the search
query has an offset other than zero, it will be reset to zero and the expected hit amount
will be adjusted accordingly.sendSearchRequest
in class SearchInvoker
IOException
protected List<Result> getSearchResults(CacheKey cacheKey) throws IOException
getSearchResults
in class SearchInvoker
IOException
protected void release()
release
in class CloseableInvoker
Copyright © 2018. All rights reserved.