Class TopLevelJoinQuery


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

      • TopLevelJoinQuery

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

      • 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.index.IndexReader reader)
                                               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