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 queryPhaseRankCoordinatorContext, 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 queryPhaseRankCoordinatorContext, int numReducePhases, int size, int from, boolean isEmptyResult) Creates an instance of aReducedQueryPhaserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaggregationsrecord component.buildResponse(SearchHits hits, Collection<? extends SearchPhaseResult> fetchResults) Creates a new search response from the given merged hits.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefetchHitsrecord component.intfrom()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisEmptyResultrecord component.floatmaxScore()Returns the value of themaxScorerecord component.intReturns the value of thenumReducePhasesrecord component.Returns the value of theprofileBuilderrecord component.Returns the value of thequeryPhaseRankCoordinatorContextrecord component.intsize()Returns the value of thesizerecord component.Returns the value of thesortedTopDocsrecord component.Returns the value of thesortValueFormatsrecord component.suggest()Returns the value of thesuggestrecord component.Returns the value of theterminatedEarlyrecord component.booleantimedOut()Returns the value of thetimedOutrecord component.final StringtoString()Returns a string representation of this record class.org.apache.lucene.search.TotalHitsReturns the value of thetotalHitsrecord 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 queryPhaseRankCoordinatorContext, int numReducePhases, int size, int from, boolean isEmptyResult) Creates an instance of aReducedQueryPhaserecord class.- Parameters:
totalHits- the value for thetotalHitsrecord componentfetchHits- the value for thefetchHitsrecord componentmaxScore- the value for themaxScorerecord componenttimedOut- the value for thetimedOutrecord componentterminatedEarly- the value for theterminatedEarlyrecord componentsuggest- the value for thesuggestrecord componentaggregations- the value for theaggregationsrecord componentprofileBuilder- the value for theprofileBuilderrecord componentsortedTopDocs- the value for thesortedTopDocsrecord componentsortValueFormats- the value for thesortValueFormatsrecord componentqueryPhaseRankCoordinatorContext- the value for thequeryPhaseRankCoordinatorContextrecord componentnumReducePhases- the value for thenumReducePhasesrecord componentsize- the value for thesizerecord componentfrom- the value for thefromrecord componentisEmptyResult- the value for theisEmptyResultrecord component
-
-
Method Details
-
buildResponse
public SearchResponseSections buildResponse(SearchHits hits, Collection<? extends SearchPhaseResult> fetchResults) Creates a new search response from the given merged hits.- See Also:
-
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 thetotalHitsrecord component.- Returns:
- the value of the
totalHitsrecord component
-
fetchHits
public long fetchHits()Returns the value of thefetchHitsrecord component.- Returns:
- the value of the
fetchHitsrecord component
-
maxScore
public float maxScore()Returns the value of themaxScorerecord component.- Returns:
- the value of the
maxScorerecord component
-
timedOut
public boolean timedOut()Returns the value of thetimedOutrecord component.- Returns:
- the value of the
timedOutrecord component
-
terminatedEarly
Returns the value of theterminatedEarlyrecord component.- Returns:
- the value of the
terminatedEarlyrecord component
-
suggest
Returns the value of thesuggestrecord component.- Returns:
- the value of the
suggestrecord component
-
aggregations
Returns the value of theaggregationsrecord component.- Returns:
- the value of the
aggregationsrecord component
-
profileBuilder
Returns the value of theprofileBuilderrecord component.- Returns:
- the value of the
profileBuilderrecord component
-
sortedTopDocs
Returns the value of thesortedTopDocsrecord component.- Returns:
- the value of the
sortedTopDocsrecord component
-
sortValueFormats
Returns the value of thesortValueFormatsrecord component.- Returns:
- the value of the
sortValueFormatsrecord component
-
queryPhaseRankCoordinatorContext
Returns the value of thequeryPhaseRankCoordinatorContextrecord component.- Returns:
- the value of the
queryPhaseRankCoordinatorContextrecord component
-
numReducePhases
public int numReducePhases()Returns the value of thenumReducePhasesrecord component.- Returns:
- the value of the
numReducePhasesrecord component
-
size
public int size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
from
public int from()Returns the value of thefromrecord component.- Returns:
- the value of the
fromrecord component
-
isEmptyResult
public boolean isEmptyResult()Returns the value of theisEmptyResultrecord component.- Returns:
- the value of the
isEmptyResultrecord component
-