public abstract class RankedSearchExecutor<T extends com.exalead.search.index6.common.SortableSearchContext<?>>
extends java.lang.Object
implements com.exalead.search.SearchLogicRunner
Modifier and Type | Field and Description |
---|---|
protected com.exalead.search.internal.answer.AnswerAllocationContext |
answerAllocationContext |
protected QueryProcessingContext |
antiGC |
java.util.List<com.exalead.search.index6.CategorySynthesisProcessor> |
categoryProcessors |
protected com.exalead.search.SearchContainer |
currentContainer |
protected boolean |
fullHitsOver |
FullHitsPipelineHelper |
fullHitsPipe |
LogBehaviour |
limitBehav |
boolean |
limitError |
protected static org.apache.log4j.Logger |
logger |
protected StandardQueryContext |
queryContext |
protected com.exalead.search.index6.SliceAndCGData |
scgdata |
protected T |
searchContext |
LogBehaviour |
sliceDownBehav |
boolean |
sliceDownError |
protected com.exalead.mercury.util.LoggerWithStopWatch |
slogger |
protected boolean |
stopped |
protected SynthesisContainer |
synthesisContainer |
protected boolean |
synthesisOver |
protected com.exalead.tick2.TickMessageAllocator |
tickMessageAllocatorContext |
LogBehaviour |
timeoutBehav |
boolean |
timeoutError |
Constructor and Description |
---|
RankedSearchExecutor() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
buildTickMessagesForAllContentGroups()
Build the internal tick messages, and configure everything so that all
content groups work on them.
|
protected abstract java.lang.String |
getExecutorName() |
protected boolean |
isOver() |
protected boolean |
onCategoryGroupReceived(int id,
com.exalead.search.index6.CategorySynthesisMessage message) |
void |
onDeinit() |
protected boolean |
onEndOfSynthesisReceived(long indexCPUTime) |
protected boolean |
onFullHitReceived(com.exalead.search.fullhits.FullHitMessage hit,
long indexCPUTime) |
void |
onInit() |
protected boolean |
onSearchErrorReceived(java.lang.String errorMessage) |
protected boolean |
requestFullHitsIfNeeded(long selectorSize) |
void |
search(com.exalead.search.SearchContainer container) |
protected boolean |
setFullHitsOver()
Notify end of full hits.
|
protected boolean |
setSynthesisOver()
Notify end of synthesis
|
public final java.util.List<com.exalead.search.index6.CategorySynthesisProcessor> categoryProcessors
public final FullHitsPipelineHelper fullHitsPipe
protected final com.exalead.search.internal.answer.AnswerAllocationContext answerAllocationContext
protected final com.exalead.tick2.TickMessageAllocator tickMessageAllocatorContext
protected T extends com.exalead.search.index6.common.SortableSearchContext<?> searchContext
protected final SynthesisContainer synthesisContainer
protected com.exalead.search.SearchContainer currentContainer
protected StandardQueryContext queryContext
protected com.exalead.search.index6.SliceAndCGData scgdata
protected QueryProcessingContext antiGC
protected boolean fullHitsOver
protected boolean synthesisOver
protected boolean stopped
protected static org.apache.log4j.Logger logger
public boolean sliceDownError
public LogBehaviour sliceDownBehav
public boolean timeoutError
public LogBehaviour timeoutBehav
public boolean limitError
public LogBehaviour limitBehav
protected com.exalead.mercury.util.LoggerWithStopWatch slogger
public void onInit() throws java.lang.Exception
onInit
in interface com.exalead.search.SearchLogicRunner
java.lang.Exception
public void onDeinit()
onDeinit
in interface com.exalead.search.SearchLogicRunner
public void search(com.exalead.search.SearchContainer container) throws QueryProcessingException, com.exalead.search.SearchProcessingException
search
in interface com.exalead.search.SearchLogicRunner
QueryProcessingException
com.exalead.search.SearchProcessingException
protected abstract void buildTickMessagesForAllContentGroups() throws QueryProcessingException
QueryProcessingException
protected boolean setFullHitsOver()
protected boolean isOver()
protected boolean setSynthesisOver()
protected boolean onCategoryGroupReceived(int id, com.exalead.search.index6.CategorySynthesisMessage message)
protected boolean onSearchErrorReceived(java.lang.String errorMessage) throws com.exalead.search.SearchProcessingException
com.exalead.search.SearchProcessingException
protected boolean requestFullHitsIfNeeded(long selectorSize) throws com.exalead.util.TypedException
com.exalead.util.TypedException
protected boolean onEndOfSynthesisReceived(long indexCPUTime)
protected boolean onFullHitReceived(com.exalead.search.fullhits.FullHitMessage hit, long indexCPUTime)
protected abstract java.lang.String getExecutorName()
Copyright © 2013 Dassault Systèmes, All Rights Reserved.