Module org.apache.lucene.facet
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
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thechildCountrecord component.private final intThe field for thepathCountrecord component.private final TopOrdAndIntQueueThe field for theqrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTopChildrenForPath(int pathCount, int childCount, TopOrdAndIntQueue q) Creates an instance of aTopChildrenForPathrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thechildCountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thepathCountrecord component.q()Returns the value of theqrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
pathCount
private final int pathCountThe field for thepathCountrecord component. -
childCount
private final int childCountThe field for thechildCountrecord component. -
q
The field for theqrecord component.
-
-
Constructor Details
-
TopChildrenForPath
TopChildrenForPath(int pathCount, int childCount, TopOrdAndIntQueue q) Creates an instance of aTopChildrenForPathrecord class.- Parameters:
pathCount- the value for thepathCountrecord componentchildCount- the value for thechildCountrecord componentq- the value for theqrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
pathCount
public int pathCount()Returns the value of thepathCountrecord component.- Returns:
- the value of the
pathCountrecord component
-
childCount
public int childCount()Returns the value of thechildCountrecord component.- Returns:
- the value of the
childCountrecord component
-
q
Returns the value of theqrecord component.- Returns:
- the value of the
qrecord component
-