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 int
The field for thechildCount
record component.private final TopOrdAndNumberQueue
The field for thechildQueue
record component.private final Number
The field for thepathValue
record component. -
Constructor Summary
ConstructorsConstructorDescriptionTopChildrenForPath
(Number pathValue, int childCount, TopOrdAndNumberQueue childQueue) Creates an instance of aTopChildrenForPath
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the value of thechildCount
record component.Returns the value of thechildQueue
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thepathValue
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
pathValue
The field for thepathValue
record component. -
childCount
private final int childCountThe field for thechildCount
record component. -
childQueue
The field for thechildQueue
record component.
-
-
Constructor Details
-
TopChildrenForPath
TopChildrenForPath(Number pathValue, int childCount, TopOrdAndNumberQueue childQueue) Creates an instance of aTopChildrenForPath
record class.- Parameters:
pathValue
- the value for thepathValue
record componentchildCount
- the value for thechildCount
record componentchildQueue
- the value for thechildQueue
record 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 thepathValue
record component.- Returns:
- the value of the
pathValue
record component
-
childCount
public int childCount()Returns the value of thechildCount
record component.- Returns:
- the value of the
childCount
record component
-
childQueue
Returns the value of thechildQueue
record component.- Returns:
- the value of the
childQueue
record component
-