Class QueryBitSetProducer

java.lang.Object
org.apache.lucene.search.join.QueryBitSetProducer
All Implemented Interfaces:
BitSetProducer

public class QueryBitSetProducer extends Object implements BitSetProducer
A BitSetProducer that wraps a query and caches matching BitSets per segment.
  • Constructor Summary

    Constructors
    Constructor
    Description
    QueryBitSetProducer(org.apache.lucene.search.Query query)
    Wraps another query's result and caches it into bitsets.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    org.apache.lucene.util.BitSet
    getBitSet(org.apache.lucene.index.LeafReaderContext context)
    Produce a BitSet matching the expected documents on the given segment.
    org.apache.lucene.search.Query
    Gets the contained query.
    int
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • QueryBitSetProducer

      public QueryBitSetProducer(org.apache.lucene.search.Query query)
      Wraps another query's result and caches it into bitsets.
      Parameters:
      query - Query to cache results of
  • Method Details

    • getQuery

      public org.apache.lucene.search.Query getQuery()
      Gets the contained query.
      Returns:
      the contained query.
    • getBitSet

      public org.apache.lucene.util.BitSet getBitSet(org.apache.lucene.index.LeafReaderContext context) throws IOException
      Description copied from interface: BitSetProducer
      Produce a BitSet matching the expected documents on the given segment. This may return null if no documents match.
      Specified by:
      getBitSet in interface BitSetProducer
      Throws:
      IOException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object