Module org.apache.lucene.core
Package org.apache.lucene.index
Record Class CheckIndex.ConstantRelationIntersectVisitor
java.lang.Object
java.lang.Record
org.apache.lucene.index.CheckIndex.ConstantRelationIntersectVisitor
- All Implemented Interfaces:
PointValues.IntersectVisitor
- Enclosing class:
CheckIndex
private static record CheckIndex.ConstantRelationIntersectVisitor(PointValues.Relation relation)
extends Record
implements PointValues.IntersectVisitor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PointValues.Relation
The field for therelation
record component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Creates an instance of aConstantRelationIntersectVisitor
record class. -
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.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.relation()
Returns the value of therelation
record component.final String
toString()
Returns a string representation of this record class.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, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.lucene.index.PointValues.IntersectVisitor
grow, visit, visit, visit
-
Field Details
-
relation
The field for therelation
record component.
-
-
Constructor Details
-
ConstantRelationIntersectVisitor
Creates an instance of aConstantRelationIntersectVisitor
record class.- Parameters:
relation
- the value for therelation
record component
-
-
Method Details
-
visit
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
- Throws:
IOException
-
visit
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
- Throws:
IOException
-
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
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
relation
Returns the value of therelation
record component.- Returns:
- the value of the
relation
record component
-