public class QueryBitSetProducer extends java.lang.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(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() |
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.ObjectCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.