Package org.apache.lucene.search.join
Class DiversifyingNearestChildrenKnnCollectorManager
- java.lang.Object
-
- org.apache.lucene.search.join.DiversifyingNearestChildrenKnnCollectorManager
-
- All Implemented Interfaces:
KnnCollectorManager
public class DiversifyingNearestChildrenKnnCollectorManager extends Object implements KnnCollectorManager
DiversifyingNearestChildrenKnnCollectorManager responsible for creatingDiversifyingNearestChildrenKnnCollector
instances.
-
-
Constructor Summary
Constructors Constructor Description DiversifyingNearestChildrenKnnCollectorManager(int k, BitSetProducer parentsFilter)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.lucene.search.join.DiversifyingNearestChildrenKnnCollector
newCollector(int visitedLimit, LeafReaderContext context)
Return a newDiversifyingNearestChildrenKnnCollector
instance.
-
-
-
Constructor Detail
-
DiversifyingNearestChildrenKnnCollectorManager
public DiversifyingNearestChildrenKnnCollectorManager(int k, BitSetProducer parentsFilter)
Constructor- Parameters:
k
- - the number of top k vectors to collectparentsFilter
- Filter identifying the parent documents.
-
-
Method Detail
-
newCollector
public org.apache.lucene.search.join.DiversifyingNearestChildrenKnnCollector newCollector(int visitedLimit, LeafReaderContext context) throws IOException
Return a newDiversifyingNearestChildrenKnnCollector
instance.- Specified by:
newCollector
in interfaceKnnCollectorManager
- Parameters:
visitedLimit
- the maximum number of nodes that the search is allowed to visitcontext
- the leaf reader context- Throws:
IOException
-
-