public class QueryBitSetProducer extends java.lang.Object implements BitSetProducer
BitSetProducer that wraps a query and caches matching
BitSets per segment.| Modifier and Type | Field and Description |
|---|---|
(package private) java.util.Map<IndexReader.CacheKey,DocIdSet> |
cache |
private Query |
query |
| Constructor and Description |
|---|
QueryBitSetProducer(Query query)
Wraps another query's result and caches it into bitsets.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.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() |
java.lang.String |
toString() |
private final Query query
final java.util.Map<IndexReader.CacheKey,DocIdSet> cache
public QueryBitSetProducer(Query query)
query - Query to cache results ofpublic Query getQuery()
public BitSet getBitSet(LeafReaderContext context) throws java.io.IOException
BitSetProducerBitSet matching the expected documents on the given
segment. This may return null if no documents match.getBitSet in interface BitSetProducerjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object