Module org.elasticsearch.server
Package org.elasticsearch.action.search
Record Class SearchPhaseController.SortedTopDocs
java.lang.Object
java.lang.Record
org.elasticsearch.action.search.SearchPhaseController.SortedTopDocs
- Enclosing class:
SearchPhaseController
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSortedTopDocs(org.apache.lucene.search.ScoreDoc[] scoreDocs, boolean isSortedByField, org.apache.lucene.search.SortField[] sortFields, String collapseField, Object[] collapseValues, int numberOfCompletionsSuggestions) Creates an instance of aSortedTopDocsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecollapseFieldrecord component.Object[]Returns the value of thecollapseValuesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisSortedByFieldrecord component.intReturns the value of thenumberOfCompletionsSuggestionsrecord component.org.apache.lucene.search.ScoreDoc[]Returns the value of thescoreDocsrecord component.org.apache.lucene.search.SortField[]Returns the value of thesortFieldsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
EMPTY
-
-
Constructor Details
-
SortedTopDocs
public SortedTopDocs(org.apache.lucene.search.ScoreDoc[] scoreDocs, boolean isSortedByField, org.apache.lucene.search.SortField[] sortFields, String collapseField, Object[] collapseValues, int numberOfCompletionsSuggestions) Creates an instance of aSortedTopDocsrecord class.- Parameters:
scoreDocs- the value for thescoreDocsrecord componentisSortedByField- the value for theisSortedByFieldrecord componentsortFields- the value for thesortFieldsrecord componentcollapseField- the value for thecollapseFieldrecord componentcollapseValues- the value for thecollapseValuesrecord componentnumberOfCompletionsSuggestions- the value for thenumberOfCompletionsSuggestionsrecord component
-
-
Method Details
-
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 '=='. -
scoreDocs
public org.apache.lucene.search.ScoreDoc[] scoreDocs()Returns the value of thescoreDocsrecord component.- Returns:
- the value of the
scoreDocsrecord component
-
isSortedByField
public boolean isSortedByField()Returns the value of theisSortedByFieldrecord component.- Returns:
- the value of the
isSortedByFieldrecord component
-
sortFields
public org.apache.lucene.search.SortField[] sortFields()Returns the value of thesortFieldsrecord component.- Returns:
- the value of the
sortFieldsrecord component
-
collapseField
Returns the value of thecollapseFieldrecord component.- Returns:
- the value of the
collapseFieldrecord component
-
collapseValues
Returns the value of thecollapseValuesrecord component.- Returns:
- the value of the
collapseValuesrecord component
-
numberOfCompletionsSuggestions
public int numberOfCompletionsSuggestions()Returns the value of thenumberOfCompletionsSuggestionsrecord component.- Returns:
- the value of the
numberOfCompletionsSuggestionsrecord component
-