com.atlassian.confluence.plugins.edgeindex
Class GroupByEdgeTargetCollector
java.lang.Object
org.apache.lucene.search.Collector
com.atlassian.confluence.plugins.edgeindex.GroupByEdgeTargetCollector
public class GroupByEdgeTargetCollector
- extends org.apache.lucene.search.Collector
Collector that groups edges by target, and aggregates all the scores for each edge against that target.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GroupByEdgeTargetCollector
public GroupByEdgeTargetCollector(EdgeTypeRepository edgeTypeRepository,
ScoreConfig scoreConfig)
GroupByEdgeTargetCollector
public GroupByEdgeTargetCollector(EdgeTypeRepository edgeTypeRepository,
ScoreConfig scoreConfig,
java.util.Date now)
collect
public void collect(int docId)
throws java.io.IOException
- Specified by:
collect
in class org.apache.lucene.search.Collector
- Throws:
java.io.IOException
setNextReader
public void setNextReader(org.apache.lucene.index.AtomicReaderContext context)
throws java.io.IOException
- Specified by:
setNextReader
in class org.apache.lucene.search.Collector
- Throws:
java.io.IOException
getTopTargetsOrderedByScore
public java.util.List<EdgeTargetInfo> getTopTargetsOrderedByScore()
setScorer
public void setScorer(org.apache.lucene.search.Scorer scorer)
throws java.io.IOException
- Specified by:
setScorer
in class org.apache.lucene.search.Collector
- Throws:
java.io.IOException
acceptsDocsOutOfOrder
public boolean acceptsDocsOutOfOrder()
- Specified by:
acceptsDocsOutOfOrder
in class org.apache.lucene.search.Collector
Copyright © 2003-2013 Atlassian. All Rights Reserved.