Class TopLevelJoinQuery

java.lang.Object
org.apache.lucene.search.Query
org.apache.solr.search.TopLevelJoinQuery
All Implemented Interfaces:
SolrSearcherRequirer

public class TopLevelJoinQuery extends org.apache.lucene.search.Query implements SolrSearcherRequirer
JoinQuery implementation using global (top-level) DocValues ordinals to efficiently compare values in the "from" and "to" fields.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected static class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    TopLevelJoinQuery(String fromField, String toField, String coreName, org.apache.lucene.search.Query subQuery)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    convertFromOrdinalsIntoToField(org.apache.lucene.util.LongBitSet fromOrdBitSet, org.apache.lucene.index.SortedSetDocValues fromDocValues, org.apache.lucene.util.LongBitSet toOrdBitSet, org.apache.lucene.index.SortedSetDocValues toDocValues)
     
    org.apache.lucene.search.Weight
    createWeight(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.ScoreMode scoreMode, float boost)
     
    boolean
    equals(Object other)
     
    org.apache.lucene.search.Query
     
    int
     
    org.apache.lucene.search.Query
    rewrite(org.apache.lucene.search.IndexSearcher searcher)
     
     
    void
    visit(org.apache.lucene.search.QueryVisitor visitor)
     

    Methods inherited from class org.apache.lucene.search.Query

    classHash, sameClassAs, toString

    Methods inherited from class java.lang.Object

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

    • TopLevelJoinQuery

      public TopLevelJoinQuery(String fromField, String toField, String coreName, org.apache.lucene.search.Query subQuery)
  • Method Details

    • createWeight

      public org.apache.lucene.search.Weight createWeight(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.ScoreMode scoreMode, float boost) throws IOException
      Throws:
      IOException
    • convertFromOrdinalsIntoToField

      protected TopLevelJoinQuery.BitsetBounds convertFromOrdinalsIntoToField(org.apache.lucene.util.LongBitSet fromOrdBitSet, org.apache.lucene.index.SortedSetDocValues fromDocValues, org.apache.lucene.util.LongBitSet toOrdBitSet, org.apache.lucene.index.SortedSetDocValues toDocValues) throws IOException
      Throws:
      IOException
    • getQuery

      public org.apache.lucene.search.Query getQuery()
    • rewrite

      public org.apache.lucene.search.Query rewrite(org.apache.lucene.search.IndexSearcher searcher) throws IOException
      Overrides:
      rewrite in class org.apache.lucene.search.Query
      Throws:
      IOException
    • visit

      public void visit(org.apache.lucene.search.QueryVisitor visitor)
      Specified by:
      visit in class org.apache.lucene.search.Query
    • toString

      public String toString(String field)
      Specified by:
      toString in class org.apache.lucene.search.Query
    • equals

      public boolean equals(Object other)
      Specified by:
      equals in class org.apache.lucene.search.Query
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class org.apache.lucene.search.Query