Package io.camunda.search.clients.core
Record Class SearchQueryRequest
java.lang.Object
java.lang.Record
io.camunda.search.clients.core.SearchQueryRequest
public record SearchQueryRequest(List<String> index, SearchQuery query, List<SearchAggregator> aggregations, List<SearchSortOptions> sort, Object[] searchAfter, Integer from, Integer size, SearchSourceConfig source)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSearchQueryRequest(List<String> index, SearchQuery query, List<SearchAggregator> aggregations, List<SearchSortOptions> sort, Object[] searchAfter, Integer from, Integer size, SearchSourceConfig source) Creates an instance of aSearchQueryRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaggregationsrecord component.final booleanIndicates whether some other object is "equal to" this one.from()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.index()Returns the value of theindexrecord component.static SearchQueryRequestquery()Returns the value of thequeryrecord component.Object[]Returns the value of thesearchAfterrecord component.size()Returns the value of thesizerecord component.sort()Returns the value of thesortrecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SearchQueryRequest
public SearchQueryRequest(List<String> index, SearchQuery query, List<SearchAggregator> aggregations, List<SearchSortOptions> sort, Object[] searchAfter, Integer from, Integer size, SearchSourceConfig source) Creates an instance of aSearchQueryRequestrecord class.- Parameters:
index- the value for theindexrecord componentquery- the value for thequeryrecord componentaggregations- the value for theaggregationsrecord componentsort- the value for thesortrecord componentsearchAfter- the value for thesearchAfterrecord componentfrom- the value for thefromrecord componentsize- the value for thesizerecord componentsource- the value for thesourcerecord component
-
-
Method Details
-
of
public static SearchQueryRequest of(Function<SearchQueryRequest.Builder, ObjectBuilder<SearchQueryRequest>> fn) -
toBuilder
-
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). -
index
Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
query
Returns the value of thequeryrecord component.- Returns:
- the value of the
queryrecord component
-
aggregations
Returns the value of theaggregationsrecord component.- Returns:
- the value of the
aggregationsrecord component
-
sort
Returns the value of thesortrecord component.- Returns:
- the value of the
sortrecord component
-
searchAfter
Returns the value of thesearchAfterrecord component.- Returns:
- the value of the
searchAfterrecord component
-
from
Returns the value of thefromrecord component.- Returns:
- the value of the
fromrecord component
-
size
Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-