Package io.camunda.search.clients.core
Record Class AggregationResult
java.lang.Object
java.lang.Record
io.camunda.search.clients.core.AggregationResult
public record AggregationResult(Long docCount, Map<String,AggregationResult> aggregations, List<SearchQueryHit> hits, String endCursor)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAggregationResult(Long docCount, Map<String, AggregationResult> aggregations) AggregationResult(Long docCount, Map<String, AggregationResult> aggregations, List<SearchQueryHit> hits, String endCursor) Creates an instance of aAggregationResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaggregationsrecord component.docCount()Returns the value of thedocCountrecord component.Returns the value of theendCursorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.hits()Returns the value of thehitsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AggregationResult
-
AggregationResult
public AggregationResult(Long docCount, Map<String, AggregationResult> aggregations, List<SearchQueryHit> hits, String endCursor) Creates an instance of aAggregationResultrecord class.- Parameters:
docCount- the value for thedocCountrecord componentaggregations- the value for theaggregationsrecord componenthits- the value for thehitsrecord componentendCursor- the value for theendCursorrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
docCount
Returns the value of thedocCountrecord component.- Returns:
- the value of the
docCountrecord component
-
aggregations
Returns the value of theaggregationsrecord component.- Returns:
- the value of the
aggregationsrecord component
-
hits
Returns the value of thehitsrecord component.- Returns:
- the value of the
hitsrecord component
-
endCursor
Returns the value of theendCursorrecord component.- Returns:
- the value of the
endCursorrecord component
-