Module org.elasticsearch.server
Package org.elasticsearch.action.search
Record Class SearchPhaseController.ReducedQueryPhase
java.lang.Object
java.lang.Record
org.elasticsearch.action.search.SearchPhaseController.ReducedQueryPhase
- Enclosing class:
- SearchPhaseController
public static record SearchPhaseController.ReducedQueryPhase(org.apache.lucene.search.TotalHits totalHits, long fetchHits, float maxScore, boolean timedOut, Boolean terminatedEarly, Suggest suggest, InternalAggregations aggregations, SearchProfileResultsBuilder profileBuilder, SearchPhaseController.SortedTopDocs sortedTopDocs, DocValueFormat[] sortValueFormats, QueryPhaseRankCoordinatorContext rankCoordinatorContext, int numReducePhases, int size, int from, boolean isEmptyResult)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionReducedQueryPhase
(org.apache.lucene.search.TotalHits totalHits, long fetchHits, float maxScore, boolean timedOut, Boolean terminatedEarly, Suggest suggest, InternalAggregations aggregations, SearchProfileResultsBuilder profileBuilder, SearchPhaseController.SortedTopDocs sortedTopDocs, DocValueFormat[] sortValueFormats, QueryPhaseRankCoordinatorContext rankCoordinatorContext, int numReducePhases, int size, int from, boolean isEmptyResult) Creates an instance of aReducedQueryPhase
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaggregations
record component.buildResponse
(SearchHits hits, Collection<? extends SearchPhaseResult> fetchResults) Creates a new search response from the given merged hits.final boolean
Indicates whether some other object is "equal to" this one.long
Returns the value of thefetchHits
record component.int
from()
Returns the value of thefrom
record component.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theisEmptyResult
record component.float
maxScore()
Returns the value of themaxScore
record component.int
Returns the value of thenumReducePhases
record component.Returns the value of theprofileBuilder
record component.Returns the value of therankCoordinatorContext
record component.int
size()
Returns the value of thesize
record component.Returns the value of thesortedTopDocs
record component.Returns the value of thesortValueFormats
record component.suggest()
Returns the value of thesuggest
record component.Returns the value of theterminatedEarly
record component.boolean
timedOut()
Returns the value of thetimedOut
record component.final String
toString()
Returns a string representation of this record class.org.apache.lucene.search.TotalHits
Returns the value of thetotalHits
record component.
-
Constructor Details
-
ReducedQueryPhase
public ReducedQueryPhase(org.apache.lucene.search.TotalHits totalHits, long fetchHits, float maxScore, boolean timedOut, Boolean terminatedEarly, Suggest suggest, InternalAggregations aggregations, SearchProfileResultsBuilder profileBuilder, SearchPhaseController.SortedTopDocs sortedTopDocs, DocValueFormat[] sortValueFormats, QueryPhaseRankCoordinatorContext rankCoordinatorContext, int numReducePhases, int size, int from, boolean isEmptyResult) Creates an instance of aReducedQueryPhase
record class.- Parameters:
totalHits
- the value for thetotalHits
record componentfetchHits
- the value for thefetchHits
record componentmaxScore
- the value for themaxScore
record componenttimedOut
- the value for thetimedOut
record componentterminatedEarly
- the value for theterminatedEarly
record componentsuggest
- the value for thesuggest
record componentaggregations
- the value for theaggregations
record componentprofileBuilder
- the value for theprofileBuilder
record componentsortedTopDocs
- the value for thesortedTopDocs
record componentsortValueFormats
- the value for thesortValueFormats
record componentrankCoordinatorContext
- the value for therankCoordinatorContext
record componentnumReducePhases
- the value for thenumReducePhases
record componentsize
- the value for thesize
record componentfrom
- the value for thefrom
record componentisEmptyResult
- the value for theisEmptyResult
record component
-
-
Method Details
-
buildResponse
public SearchResponseSections buildResponse(SearchHits hits, Collection<? extends SearchPhaseResult> fetchResults) Creates a new search response from the given merged hits. -
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
totalHits
public org.apache.lucene.search.TotalHits totalHits()Returns the value of thetotalHits
record component.- Returns:
- the value of the
totalHits
record component
-
fetchHits
public long fetchHits()Returns the value of thefetchHits
record component.- Returns:
- the value of the
fetchHits
record component
-
maxScore
public float maxScore()Returns the value of themaxScore
record component.- Returns:
- the value of the
maxScore
record component
-
timedOut
public boolean timedOut()Returns the value of thetimedOut
record component.- Returns:
- the value of the
timedOut
record component
-
terminatedEarly
Returns the value of theterminatedEarly
record component.- Returns:
- the value of the
terminatedEarly
record component
-
suggest
Returns the value of thesuggest
record component.- Returns:
- the value of the
suggest
record component
-
aggregations
Returns the value of theaggregations
record component.- Returns:
- the value of the
aggregations
record component
-
profileBuilder
Returns the value of theprofileBuilder
record component.- Returns:
- the value of the
profileBuilder
record component
-
sortedTopDocs
Returns the value of thesortedTopDocs
record component.- Returns:
- the value of the
sortedTopDocs
record component
-
sortValueFormats
Returns the value of thesortValueFormats
record component.- Returns:
- the value of the
sortValueFormats
record component
-
rankCoordinatorContext
Returns the value of therankCoordinatorContext
record component.- Returns:
- the value of the
rankCoordinatorContext
record component
-
numReducePhases
public int numReducePhases()Returns the value of thenumReducePhases
record component.- Returns:
- the value of the
numReducePhases
record component
-
size
public int size()Returns the value of thesize
record component.- Returns:
- the value of the
size
record component
-
from
public int from()Returns the value of thefrom
record component.- Returns:
- the value of the
from
record component
-
isEmptyResult
public boolean isEmptyResult()Returns the value of theisEmptyResult
record component.- Returns:
- the value of the
isEmptyResult
record component
-