Package org.apache.lucene.facet.taxonomy
Record Class SearcherTaxonomyManager.SearcherAndTaxonomy
java.lang.Object
java.lang.Record
org.apache.lucene.facet.taxonomy.SearcherTaxonomyManager.SearcherAndTaxonomy
- Record Components:
searcher- Point-in-timeIndexSearcher.taxonomyReader- Matching point-in-timeDirectoryTaxonomyReader.
- Enclosing class:
SearcherTaxonomyManager
public static record SearcherTaxonomyManager.SearcherAndTaxonomy(IndexSearcher searcher, DirectoryTaxonomyReader taxonomyReader)
extends Record
Holds a matched pair of
IndexSearcher and TaxonomyReader-
Constructor Summary
ConstructorsConstructorDescriptionSearcherAndTaxonomy(IndexSearcher searcher, DirectoryTaxonomyReader taxonomyReader) Creates an instance of aSearcherAndTaxonomyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.searcher()Returns the value of thesearcherrecord component.Returns the value of thetaxonomyReaderrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SearcherAndTaxonomy
Creates an instance of aSearcherAndTaxonomyrecord class.- Parameters:
searcher- the value for thesearcherrecord componenttaxonomyReader- the value for thetaxonomyReaderrecord 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). -
searcher
Returns the value of thesearcherrecord component.- Returns:
- the value of the
searcherrecord component
-
taxonomyReader
Returns the value of thetaxonomyReaderrecord component.- Returns:
- the value of the
taxonomyReaderrecord component
-