Package io.camunda.search.clients.core
Record Class SearchQueryResponse<T>
java.lang.Object
java.lang.Record
io.camunda.search.clients.core.SearchQueryResponse<T>
public record SearchQueryResponse<T>(long totalHits, String scrollId, List<SearchQueryHit<T>> hits, Map<String,AggregationResult> aggregations)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSearchQueryResponse(long totalHits, String scrollId, List<SearchQueryHit<T>> hits, Map<String, AggregationResult> aggregations) Creates an instance of aSearchQueryResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaggregationsrecord 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.static <T> SearchQueryResponse<T> scrollId()Returns the value of thescrollIdrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalHitsrecord component.
-
Constructor Details
-
SearchQueryResponse
public SearchQueryResponse(long totalHits, String scrollId, List<SearchQueryHit<T>> hits, Map<String, AggregationResult> aggregations) Creates an instance of aSearchQueryResponserecord class.- Parameters:
totalHits- the value for thetotalHitsrecord componentscrollId- the value for thescrollIdrecord componenthits- the value for thehitsrecord componentaggregations- the value for theaggregationsrecord component
-
-
Method Details
-
of
public static <T> SearchQueryResponse<T> of(Function<SearchQueryResponse.Builder<T>, ObjectBuilder<SearchQueryResponse<T>>> fn) -
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 long totalHits()Returns the value of thetotalHitsrecord component.- Returns:
- the value of the
totalHitsrecord component
-
scrollId
Returns the value of thescrollIdrecord component.- Returns:
- the value of the
scrollIdrecord component
-
hits
Returns the value of thehitsrecord component.- Returns:
- the value of the
hitsrecord component
-
aggregations
Returns the value of theaggregationsrecord component.- Returns:
- the value of the
aggregationsrecord component
-