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

    Fields
    Modifier and Type
    Field
    Description
    private final PointValues.Relation
    The field for the relation record component.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    Creates an instance of a ConstantRelationIntersectVisitor record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    compare(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
    Returns a hash code value for this object.
    Returns the value of the relation record component.
    final String
    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

      private final PointValues.Relation relation
      The field for the relation record component.
  • Constructor Details

    • ConstantRelationIntersectVisitor

      private ConstantRelationIntersectVisitor(PointValues.Relation relation)
      Creates an instance of a ConstantRelationIntersectVisitor record class.
      Parameters:
      relation - the value for the relation record component
  • Method Details

    • visit

      public void visit(int docID) throws IOException
      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 interface PointValues.IntersectVisitor
      Throws:
      IOException
    • visit

      public void visit(int docID, byte[] packedValue) throws IOException
      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 interface PointValues.IntersectVisitor
      Throws:
      IOException
    • compare

      public PointValues.Relation compare(byte[] minPackedValue, byte[] maxPackedValue)
      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 interface PointValues.IntersectVisitor
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • relation

      public PointValues.Relation relation()
      Returns the value of the relation record component.
      Returns:
      the value of the relation record component