Class RollupSearchRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.rollup.RollupSearchRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class RollupSearchRequest extends RequestBase implements JsonpSerializable
Enables searching rolled-up data using the standard query DSL.
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RollupSearchRequest.Builder
Builder forRollupSearchRequest
.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<RollupSearchRequest>
_DESERIALIZER
Json deserializer forRollupSearchRequest
static SimpleEndpoint<RollupSearchRequest,?>
_ENDPOINT
Endpoint "rollup.rollup_search
". -
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.String,Aggregation>
aggregations()
API name:aggregations
static <TDocument>
Endpoint<RollupSearchRequest,RollupSearchResponse<TDocument>,ErrorResponse>createRollupSearchEndpoint(JsonpDeserializer<TDocument> tDocumentDeserializer)
Create an "rollup.rollup_search
" endpoint.java.util.List<java.lang.String>
index()
Required - The indices or index-pattern(s) (containing rollup or regular data) that should be searchedstatic RollupSearchRequest
of(java.util.function.Function<RollupSearchRequest.Builder,ObjectBuilder<RollupSearchRequest>> fn)
Query
query()
API name:query
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupRollupSearchRequestDeserializer(ObjectDeserializer<RollupSearchRequest.Builder> op)
java.lang.Integer
size()
Must be zero if set, as rollups work on pre-aggregated dataMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forRollupSearchRequest
-
_ENDPOINT
Endpoint "rollup.rollup_search
".
-
-
Method Details
-
of
public static RollupSearchRequest of(java.util.function.Function<RollupSearchRequest.Builder,ObjectBuilder<RollupSearchRequest>> fn) -
aggregations
API name:aggregations
-
index
public final java.util.List<java.lang.String> index()Required - The indices or index-pattern(s) (containing rollup or regular data) that should be searchedAPI name:
index
-
query
API name:query
-
size
@Nullable public final java.lang.Integer size()Must be zero if set, as rollups work on pre-aggregated dataAPI name:
size
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupRollupSearchRequestDeserializer
protected static void setupRollupSearchRequestDeserializer(ObjectDeserializer<RollupSearchRequest.Builder> op) -
createRollupSearchEndpoint
public static <TDocument> Endpoint<RollupSearchRequest,RollupSearchResponse<TDocument>,ErrorResponse> createRollupSearchEndpoint(JsonpDeserializer<TDocument> tDocumentDeserializer)Create an "rollup.rollup_search
" endpoint.
-