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.Query
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
TopLevelJoinQuery.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.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)
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
getQuery()
int
hashCode()
org.apache.lucene.search.Query
rewrite(org.apache.lucene.index.IndexReader reader)
String
toString(String field)
void
visit(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:
rewrite
in classorg.apache.lucene.search.Query
- Throws:
IOException
-
visit
public void visit(org.apache.lucene.search.QueryVisitor visitor)
- Specified by:
visit
in classorg.apache.lucene.search.Query
-
toString
public String toString(String field)
- Specified by:
toString
in classorg.apache.lucene.search.Query
-
equals
public boolean equals(Object other)
- Specified by:
equals
in classorg.apache.lucene.search.Query
-
hashCode
public int hashCode()
- Specified by:
hashCode
in classorg.apache.lucene.search.Query
-
-