Record Class AbstractSortedSetDocValueFacetCounts.TopChildrenForPath

java.lang.Object
java.lang.Record
org.apache.lucene.facet.sortedset.AbstractSortedSetDocValueFacetCounts.TopChildrenForPath
Enclosing class:
AbstractSortedSetDocValueFacetCounts

static record AbstractSortedSetDocValueFacetCounts.TopChildrenForPath(int pathCount, int childCount, TopOrdAndIntQueue q) extends Record
Intermediate result to store top children for a given path before resolving labels, etc.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int
    The field for the childCount record component.
    private final int
    The field for the pathCount record component.
    private final TopOrdAndIntQueue
    The field for the q record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TopChildrenForPath(int pathCount, int childCount, TopOrdAndIntQueue q)
    Creates an instance of a TopChildrenForPath record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the childCount record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the pathCount record component.
    q()
    Returns the value of the q record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • pathCount

      private final int pathCount
      The field for the pathCount record component.
    • childCount

      private final int childCount
      The field for the childCount record component.
    • q

      private final TopOrdAndIntQueue q
      The field for the q record component.
  • Constructor Details

    • TopChildrenForPath

      TopChildrenForPath(int pathCount, int childCount, TopOrdAndIntQueue q)
      Creates an instance of a TopChildrenForPath record class.
      Parameters:
      pathCount - the value for the pathCount record component
      childCount - the value for the childCount record component
      q - the value for the q record component
  • Method Details

    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • pathCount

      public int pathCount()
      Returns the value of the pathCount record component.
      Returns:
      the value of the pathCount record component
    • childCount

      public int childCount()
      Returns the value of the childCount record component.
      Returns:
      the value of the childCount record component
    • q

      public TopOrdAndIntQueue q()
      Returns the value of the q record component.
      Returns:
      the value of the q record component