Package org.apache.lucene.search.join
Class QueryBitSetProducer
- java.lang.Object
-
- org.apache.lucene.search.join.QueryBitSetProducer
-
- All Implemented Interfaces:
BitSetProducer
public class QueryBitSetProducer extends Object implements BitSetProducer
ABitSetProducerthat wraps a query and caches matchingBitSets per segment.
-
-
Constructor Summary
Constructors Constructor Description QueryBitSetProducer(Query query)Wraps another query's result and caches it into bitsets.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)BitSetgetBitSet(LeafReaderContext context)Produce aBitSetmatching the expected documents on the given segment.QuerygetQuery()Gets the contained query.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
QueryBitSetProducer
public QueryBitSetProducer(Query query)
Wraps another query's result and caches it into bitsets.- Parameters:
query- Query to cache results of
-
-
Method Detail
-
getQuery
public Query getQuery()
Gets the contained query.- Returns:
- the contained query.
-
getBitSet
public BitSet getBitSet(LeafReaderContext context) throws IOException
Description copied from interface:BitSetProducerProduce aBitSetmatching the expected documents on the given segment. This may returnnullif no documents match.- Specified by:
getBitSetin interfaceBitSetProducer- Throws:
IOException
-
-