Module org.apache.lucene.join
Package org.apache.lucene.search.join
Class PointInSetIncludingScoreQuery.MergePointVisitor
java.lang.Object
org.apache.lucene.search.join.PointInSetIncludingScoreQuery.MergePointVisitor
- All Implemented Interfaces:
PointValues.IntersectVisitor
- Enclosing class:
PointInSetIncludingScoreQuery
private class PointInSetIncludingScoreQuery.MergePointVisitor
extends Object
implements PointValues.IntersectVisitor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PrefixCodedTerms.TermIterator
private BytesRef
(package private) float
private final FixedBitSet
private final float[]
private final BytesRef
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
MergePointVisitor
(PrefixCodedTerms sortedPackedPoints, FixedBitSet result, float[] scores) -
Method Summary
Modifier and TypeMethodDescriptioncompare
(byte[] minPackedValue, byte[] maxPackedValue) Called for non-leaf cells to test how the cell relates to the query, to determine how to further recurse down the tree.void
visit
(int docID) Called for all documents in a leaf cell that's fully contained by the query.void
visit
(int docID, byte[] packedValue) Called for all documents in a leaf cell that crosses the query.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.lucene.index.PointValues.IntersectVisitor
grow, visit, visit
-
Field Details
-
result
-
scores
private final float[] scores -
iterator
-
scoreIterator
-
nextQueryPoint
-
nextScore
float nextScore -
scratch
-
-
Constructor Details
-
MergePointVisitor
private MergePointVisitor(PrefixCodedTerms sortedPackedPoints, FixedBitSet result, float[] scores) throws IOException - Throws:
IOException
-
-
Method Details
-
visit
public void visit(int docID) Description copied from interface:PointValues.IntersectVisitor
Called for all documents in a leaf cell that's fully contained by the query. The consumer should blindly accept the docID.- Specified by:
visit
in interfacePointValues.IntersectVisitor
-
visit
public void visit(int docID, byte[] packedValue) Description copied from interface:PointValues.IntersectVisitor
Called for all documents in a leaf cell that crosses the query. The consumer should scrutinize the packedValue to decide whether to accept it. In the 1D case, values are visited in increasing order, and in the case of ties, in increasing docID order.- Specified by:
visit
in interfacePointValues.IntersectVisitor
-
compare
Description copied from interface:PointValues.IntersectVisitor
Called for non-leaf cells to test how the cell relates to the query, to determine how to further recurse down the tree.- Specified by:
compare
in interfacePointValues.IntersectVisitor
-