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 int
The field for thechildCount
record component.private final int
The field for thepathCount
record component.private final TopOrdAndIntQueue
The field for theq
record component. -
Constructor Summary
ConstructorsConstructorDescriptionTopChildrenForPath
(int pathCount, int childCount, TopOrdAndIntQueue q) Creates an instance of aTopChildrenForPath
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the value of thechildCount
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.int
Returns the value of thepathCount
record component.q()
Returns the value of theq
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
pathCount
private final int pathCountThe field for thepathCount
record component. -
childCount
private final int childCountThe field for thechildCount
record component. -
q
The field for theq
record component.
-
-
Constructor Details
-
TopChildrenForPath
TopChildrenForPath(int pathCount, int childCount, TopOrdAndIntQueue q) Creates an instance of aTopChildrenForPath
record class.- Parameters:
pathCount
- the value for thepathCount
record componentchildCount
- the value for thechildCount
record componentq
- the value for theq
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 '=='. -
pathCount
public int pathCount()Returns the value of thepathCount
record component.- Returns:
- the value of the
pathCount
record component
-
childCount
public int childCount()Returns the value of thechildCount
record component.- Returns:
- the value of the
childCount
record component
-
q
Returns the value of theq
record component.- Returns:
- the value of the
q
record component
-