Package org.apache.lucene.facet
Record Class FacetsCollectorManager.FacetsResult
java.lang.Object
java.lang.Record
org.apache.lucene.facet.FacetsCollectorManager.FacetsResult
- Record Components:
topDocs- the top docsfacetsCollector- the facets result included in aFacetsCollectorinstance
- Enclosing class:
FacetsCollectorManager
public static record FacetsCollectorManager.FacetsResult(TopDocs topDocs, FacetsCollector facetsCollector)
extends Record
Holds results of a search run via static utility methods exposed by this class. Those include
TopDocs as well as facets result included in the returned FacetsCollector-
Constructor Summary
ConstructorsConstructorDescriptionFacetsResult(TopDocs topDocs, FacetsCollector facetsCollector) Creates an instance of aFacetsResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefacetsCollectorrecord component.final inthashCode()Returns a hash code value for this object.topDocs()Returns the value of thetopDocsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FacetsResult
Creates an instance of aFacetsResultrecord class.- Parameters:
topDocs- the value for thetopDocsrecord componentfacetsCollector- the value for thefacetsCollectorrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
topDocs
Returns the value of thetopDocsrecord component.- Returns:
- the value of the
topDocsrecord component
-
facetsCollector
Returns the value of thefacetsCollectorrecord component.- Returns:
- the value of the
facetsCollectorrecord component
-