Module org.apache.lucene.facet
Package org.apache.lucene.facet
Record Class DrillSideways.CallableCollector<R>
java.lang.Object
java.lang.Record
org.apache.lucene.facet.DrillSideways.CallableCollector<R>
- All Implemented Interfaces:
Callable<R>
- Enclosing class:
DrillSideways
private static record DrillSideways.CallableCollector<R>(IndexSearcher searcher, Query query, CollectorManager<?,R> collectorManager)
extends Record
implements Callable<R>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CollectorManager<?, R> The field for thecollectorManagerrecord component.private final QueryThe field for thequeryrecord component.private final IndexSearcherThe field for thesearcherrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCallableCollector(IndexSearcher searcher, Query query, CollectorManager<?, R> collectorManager) Creates an instance of aCallableCollectorrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncall()Returns the value of thecollectorManagerrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.query()Returns the value of thequeryrecord component.searcher()Returns the value of thesearcherrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
searcher
The field for thesearcherrecord component. -
query
The field for thequeryrecord component. -
collectorManager
The field for thecollectorManagerrecord component.
-
-
Constructor Details
-
CallableCollector
private CallableCollector(IndexSearcher searcher, Query query, CollectorManager<?, R> collectorManager) Creates an instance of aCallableCollectorrecord class.- Parameters:
searcher- the value for thesearcherrecord componentquery- the value for thequeryrecord componentcollectorManager- the value for thecollectorManagerrecord component
-
-
Method Details
-
call
-
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
-
query
Returns the value of thequeryrecord component.- Returns:
- the value of the
queryrecord component
-
collectorManager
Returns the value of thecollectorManagerrecord component.- Returns:
- the value of the
collectorManagerrecord component
-