Class UpdateByQueryRethrottleRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.core.UpdateByQueryRethrottleRequest
Throttle an update by query operation.
Change the number of requests per second for a particular update by query operation. Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionEndpoint "update_by_query_rethrottle". -
Method Summary
Modifier and TypeMethodDescriptionof(Function<UpdateByQueryRethrottleRequest.Builder, ObjectBuilder<UpdateByQueryRethrottleRequest>> fn) rebuild()final floatRequired - The maximum number of documents to update per second, across the entire update_by_query operation (including slices).final StringtaskId()Required - The ID for the task.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_ENDPOINT
public static final Endpoint<UpdateByQueryRethrottleRequest,UpdateByQueryRethrottleResponse, _ENDPOINTErrorResponse> Endpoint "update_by_query_rethrottle".
-
-
Method Details
-
of
-
requestsPerSecond
public final float requestsPerSecond()Required - The maximum number of documents to update per second, across the entire update_by_query operation (including slices). It can be either-1to turn off throttling or any decimal number like1.7or12to throttle to that level.API name:
requests_per_second -
taskId
Required - The ID for the task.API name:
task_id -
rebuild
- Returns:
- New
UpdateByQueryRethrottleRequest.Builderinitialized with field values of this instance
-