Package org.apache.solr.search
Class TopLevelJoinQuery
- java.lang.Object
-
- org.apache.lucene.search.Query
-
- org.apache.solr.search.TopLevelJoinQuery
-
public class TopLevelJoinQuery extends org.apache.lucene.search.QueryJoinQueryimplementation 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 classTopLevelJoinQuery.BitsetBounds
-
Constructor Summary
Constructors Constructor Description TopLevelJoinQuery(String fromField, String toField, String coreName, org.apache.lucene.search.Query subQuery)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TopLevelJoinQuery.BitsetBoundsconvertFromOrdinalsIntoToField(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.WeightcreateWeight(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.ScoreMode scoreMode, float boost)booleanequals(Object other)org.apache.lucene.search.QuerygetQuery()inthashCode()org.apache.lucene.search.Queryrewrite(org.apache.lucene.index.IndexReader reader)StringtoString(String field)voidvisit(org.apache.lucene.search.QueryVisitor visitor)
-
-
-
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:
rewritein classorg.apache.lucene.search.Query- Throws:
IOException
-
visit
public void visit(org.apache.lucene.search.QueryVisitor visitor)
- Specified by:
visitin classorg.apache.lucene.search.Query
-
toString
public String toString(String field)
- Specified by:
toStringin classorg.apache.lucene.search.Query
-
equals
public boolean equals(Object other)
- Specified by:
equalsin classorg.apache.lucene.search.Query
-
hashCode
public int hashCode()
- Specified by:
hashCodein classorg.apache.lucene.search.Query
-
-