Record Class SearchTopHitsAggregator<T>
java.lang.Object
java.lang.Record
io.camunda.search.clients.aggregator.SearchTopHitsAggregator<T>
- All Implemented Interfaces:
SearchAggregator
public record SearchTopHitsAggregator<T>(String name, String field, Integer size, List<SearchAggregator> aggregations, Class<T> documentClass)
extends Record
implements SearchAggregator
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface io.camunda.search.clients.aggregator.SearchAggregator
SearchAggregator.AbstractBuilder<T> -
Constructor Summary
ConstructorsConstructorDescriptionSearchTopHitsAggregator(String name, String field, Integer size, List<SearchAggregator> aggregations, Class<T> documentClass) Creates an instance of aSearchTopHitsAggregatorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaggregationsrecord component.Returns the value of thedocumentClassrecord component.final booleanIndicates whether some other object is "equal to" this one.field()Returns the value of thefieldrecord component.getName()final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.size()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SearchTopHitsAggregator
public SearchTopHitsAggregator(String name, String field, Integer size, List<SearchAggregator> aggregations, Class<T> documentClass) Creates an instance of aSearchTopHitsAggregatorrecord class.- Parameters:
name- the value for thenamerecord componentfield- the value for thefieldrecord componentsize- the value for thesizerecord componentaggregations- the value for theaggregationsrecord componentdocumentClass- the value for thedocumentClassrecord component
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceSearchAggregator
-
getAggregations
- Specified by:
getAggregationsin interfaceSearchAggregator
-
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
field
Returns the value of thefieldrecord component.- Returns:
- the value of the
fieldrecord component
-
size
Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
aggregations
Returns the value of theaggregationsrecord component.- Returns:
- the value of the
aggregationsrecord component
-
documentClass
Returns the value of thedocumentClassrecord component.- Returns:
- the value of the
documentClassrecord component
-