Package org.apache.solr.search
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 -
Constructor Summary
ConstructorsConstructorDescriptionTopLevelJoinQuery(String fromField, String toField, String coreName, org.apache.lucene.search.Query subQuery) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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) booleanorg.apache.lucene.search.QuerygetQuery()inthashCode()org.apache.lucene.search.Queryrewrite(org.apache.lucene.search.IndexSearcher searcher) voidvisit(org.apache.lucene.search.QueryVisitor visitor) Methods inherited from class org.apache.lucene.search.Query
classHash, sameClassAs, toString
-
Constructor Details
-
TopLevelJoinQuery
-
-
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:
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
- Specified by:
toStringin classorg.apache.lucene.search.Query
-
equals
- Specified by:
equalsin classorg.apache.lucene.search.Query
-
hashCode
public int hashCode()- Specified by:
hashCodein classorg.apache.lucene.search.Query
-