public class QueryBitSetProducer extends Object implements BitSetProducer
BitSetProducer that wraps a query and caches matching
BitSets per segment.| Constructor and Description |
|---|
QueryBitSetProducer(Query query)
Wraps another query's result and caches it into bitsets.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
BitSet |
getBitSet(LeafReaderContext context)
Produce a
BitSet matching the expected documents on the given
segment. |
Query |
getQuery()
Gets the contained query.
|
int |
hashCode() |
String |
toString() |
public QueryBitSetProducer(Query query)
query - Query to cache results ofpublic Query getQuery()
public BitSet getBitSet(LeafReaderContext context) throws IOException
BitSetProducerBitSet matching the expected documents on the given
segment. This may return null if no documents match.getBitSet in interface BitSetProducerIOExceptionCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.