public class QueryBitSetProducer extends java.lang.Object implements BitSetProducer
BitSetProducer
that wraps a query and caches matching
BitSet
s 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
BitSetProducer
BitSet
matching the expected documents on the given
segment. This may return null
if no documents match.getBitSet
in interface BitSetProducer
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.