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, org.elasticsearch.action.search.SearchPhaseController.SortedTopDocs sortedTopDocs, DocValueFormat[] sortValueFormats, int numReducePhases, int size, int from, boolean isEmptyResult) extends Record
  • 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, org.elasticsearch.action.search.SearchPhaseController.SortedTopDocs sortedTopDocs, DocValueFormat[] sortValueFormats, int numReducePhases, int size, int from, boolean isEmptyResult)
      Creates an instance of a ReducedQueryPhase record class.
      Parameters:
      totalHits - the value for the totalHits record component
      fetchHits - the value for the fetchHits record component
      maxScore - the value for the maxScore record component
      timedOut - the value for the timedOut record component
      terminatedEarly - the value for the terminatedEarly record component
      suggest - the value for the suggest record component
      aggregations - the value for the aggregations record component
      profileBuilder - the value for the profileBuilder record component
      sortedTopDocs - the value for the sortedTopDocs record component
      sortValueFormats - the value for the sortValueFormats record component
      numReducePhases - the value for the numReducePhases record component
      size - the value for the size record component
      from - the value for the from record component
      isEmptyResult - the value for the isEmptyResult record component
  • Method Details

    • buildResponse

      public InternalSearchResponse buildResponse(SearchHits hits, Collection<? extends SearchPhaseResult> fetchResults)
      Creates a new search response from the given merged hits.
      See Also:
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • totalHits

      public org.apache.lucene.search.TotalHits totalHits()
      Returns the value of the totalHits record component.
      Returns:
      the value of the totalHits record component
    • fetchHits

      public long fetchHits()
      Returns the value of the fetchHits record component.
      Returns:
      the value of the fetchHits record component
    • maxScore

      public float maxScore()
      Returns the value of the maxScore record component.
      Returns:
      the value of the maxScore record component
    • timedOut

      public boolean timedOut()
      Returns the value of the timedOut record component.
      Returns:
      the value of the timedOut record component
    • terminatedEarly

      public Boolean terminatedEarly()
      Returns the value of the terminatedEarly record component.
      Returns:
      the value of the terminatedEarly record component
    • suggest

      public Suggest suggest()
      Returns the value of the suggest record component.
      Returns:
      the value of the suggest record component
    • aggregations

      public InternalAggregations aggregations()
      Returns the value of the aggregations record component.
      Returns:
      the value of the aggregations record component
    • profileBuilder

      public SearchProfileResultsBuilder profileBuilder()
      Returns the value of the profileBuilder record component.
      Returns:
      the value of the profileBuilder record component
    • sortedTopDocs

      public org.elasticsearch.action.search.SearchPhaseController.SortedTopDocs sortedTopDocs()
      Returns the value of the sortedTopDocs record component.
      Returns:
      the value of the sortedTopDocs record component
    • sortValueFormats

      public DocValueFormat[] sortValueFormats()
      Returns the value of the sortValueFormats record component.
      Returns:
      the value of the sortValueFormats record component
    • numReducePhases

      public int numReducePhases()
      Returns the value of the numReducePhases record component.
      Returns:
      the value of the numReducePhases record component
    • size

      public int size()
      Returns the value of the size record component.
      Returns:
      the value of the size record component
    • from

      public int from()
      Returns the value of the from record component.
      Returns:
      the value of the from record component
    • isEmptyResult

      public boolean isEmptyResult()
      Returns the value of the isEmptyResult record component.
      Returns:
      the value of the isEmptyResult record component