com.senseidb.search.node
Class SenseiScatterGatherHandler
java.lang.Object
com.senseidb.search.node.AbstractSenseiScatterGatherHandler<SenseiRequest,SenseiResult>
com.senseidb.search.node.SenseiScatterGatherHandler
- All Implemented Interfaces:
- com.linkedin.norbert.javacompat.network.ScatterGatherHandler<SenseiRequest,SenseiResult,SenseiResult,Integer>
public class SenseiScatterGatherHandler
- extends AbstractSenseiScatterGatherHandler<SenseiRequest,SenseiResult>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SenseiScatterGatherHandler
public SenseiScatterGatherHandler(SenseiRequest request,
SenseiRequestScatterRewriter reqRewriter)
setTimeoutMillis
public void setTimeoutMillis(long timeoutMillis)
- Overrides:
setTimeoutMillis
in class AbstractSenseiScatterGatherHandler<SenseiRequest,SenseiResult>
getTimeoutMillis
public long getTimeoutMillis()
- Overrides:
getTimeoutMillis
in class AbstractSenseiScatterGatherHandler<SenseiRequest,SenseiResult>
mergeResults
public SenseiResult mergeResults(SenseiRequest request,
List<SenseiResult> resultList)
- Description copied from class:
AbstractSenseiScatterGatherHandler
- Merge results on the client/broker side. It likely works differently from
the one in the search node.
- Specified by:
mergeResults
in class AbstractSenseiScatterGatherHandler<SenseiRequest,SenseiResult>
resultList
- the list of results from all the requested partitions.
- Returns:
- one single result instance that is merged from the result list.
customizeRequest
public SenseiRequest customizeRequest(SenseiRequest senseiReq,
com.linkedin.norbert.javacompat.cluster.Node node,
Set<Integer> partitions)
- Specified by:
customizeRequest
in class AbstractSenseiScatterGatherHandler<SenseiRequest,SenseiResult>
Copyright © 2010-2012. All Rights Reserved.