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 aSearcherAndTaxonomy
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.searcher()
Returns the value of thesearcher
record component.Returns the value of thetaxonomyReader
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
SearcherAndTaxonomy
Creates an instance of aSearcherAndTaxonomy
record class.- Parameters:
searcher
- the value for thesearcher
record componenttaxonomyReader
- the value for thetaxonomyReader
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
searcher
Returns the value of thesearcher
record component.- Returns:
- the value of the
searcher
record component
-
taxonomyReader
Returns the value of thetaxonomyReader
record component.- Returns:
- the value of the
taxonomyReader
record component
-