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 thecollectorManager
record component.private final Query
The field for thequery
record component.private final IndexSearcher
The field for thesearcher
record component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
CallableCollector
(IndexSearcher searcher, Query query, CollectorManager<?, R> collectorManager) Creates an instance of aCallableCollector
record class. -
Method Summary
Modifier and TypeMethodDescriptioncall()
Returns the value of thecollectorManager
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.query()
Returns the value of thequery
record component.searcher()
Returns the value of thesearcher
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
searcher
The field for thesearcher
record component. -
query
The field for thequery
record component. -
collectorManager
The field for thecollectorManager
record component.
-
-
Constructor Details
-
CallableCollector
private CallableCollector(IndexSearcher searcher, Query query, CollectorManager<?, R> collectorManager) Creates an instance of aCallableCollector
record class.- Parameters:
searcher
- the value for thesearcher
record componentquery
- the value for thequery
record componentcollectorManager
- the value for thecollectorManager
record 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 thesearcher
record component.- Returns:
- the value of the
searcher
record component
-
query
Returns the value of thequery
record component.- Returns:
- the value of the
query
record component
-
collectorManager
Returns the value of thecollectorManager
record component.- Returns:
- the value of the
collectorManager
record component
-