Module org.apache.lucene.facet
Package org.apache.lucene.facet.taxonomy
Record Class TaxonomyFacets.TopChildrenForPath
java.lang.Object
java.lang.Record
org.apache.lucene.facet.taxonomy.TaxonomyFacets.TopChildrenForPath
- Enclosing class:
TaxonomyFacets
static record TaxonomyFacets.TopChildrenForPath(Number pathValue, int childCount, TopOrdAndNumberQueue childQueue)
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 TopOrdAndNumberQueueThe field for thechildQueuerecord component.private final NumberThe field for thepathValuerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTopChildrenForPath(Number pathValue, int childCount, TopOrdAndNumberQueue childQueue) Creates an instance of aTopChildrenForPathrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thechildCountrecord component.Returns the value of thechildQueuerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepathValuerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
pathValue
The field for thepathValuerecord component. -
childCount
private final int childCountThe field for thechildCountrecord component. -
childQueue
The field for thechildQueuerecord component.
-
-
Constructor Details
-
TopChildrenForPath
TopChildrenForPath(Number pathValue, int childCount, TopOrdAndNumberQueue childQueue) Creates an instance of aTopChildrenForPathrecord class.- Parameters:
pathValue- the value for thepathValuerecord componentchildCount- the value for thechildCountrecord componentchildQueue- the value for thechildQueuerecord 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 '=='. -
pathValue
Returns the value of thepathValuerecord component.- Returns:
- the value of the
pathValuerecord component
-
childCount
public int childCount()Returns the value of thechildCountrecord component.- Returns:
- the value of the
childCountrecord component
-
childQueue
Returns the value of thechildQueuerecord component.- Returns:
- the value of the
childQueuerecord component
-