Class TaskResponse
java.lang.Object
org.opensearch.client.opensearch.tasks.TaskResponse
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<TaskResponse.Builder,TaskResponse>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class TaskResponse
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<TaskResponse.Builder,TaskResponse>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<TaskResponse> Json deserializer forTaskResponse -
Method Summary
Modifier and TypeMethodDescriptionfinal intbatches()Required - The number of scroll responses pulled back by the reindex operation.static TaskResponse.Builderbuilder()final Stringcanceled()API name:canceledfinal Longcreated()The number of documents that were successfully created.final longdeleted()Required - The number of documents that were successfully deleted.booleanfinal List<BulkByScrollFailure> failures()Required - The list of failures that occurred during the operation.inthashCode()final longnoops()Required - The number of documents that were ignored.static TaskResponsefinal floatRequired - The number of requests per second effectively executed during the reindex operation.final Retriesretries()Required - API name:retriesvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal IntegersliceId()API name:slice_idslices()API name:slicesfinal TimeAPI name:throttledfinal longRequired - API name:throttled_millisfinal TimeThe amount time before the throttling will end.final longRequired - When the throttling will end in milliseconds.final booleantimedOut()Required - Whether the operation timed out.Create a new builderToCopyableBuilderthat is initialised with the current state of this object.final longtook()Required - The time taken by the operation in milliseconds.final longtotal()Required - The number of documents that were successfully processed.final Longupdated()The number of documents that were successfully updated after the reindex operation.final longRequired - The number of version conflicts encountered by the reindex operation.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forTaskResponse
-
-
Method Details
-
of
-
batches
public final int batches()Required - The number of scroll responses pulled back by the reindex operation.API name:
batches -
canceled
API name:canceled -
created
The number of documents that were successfully created.API name:
created -
deleted
public final long deleted()Required - The number of documents that were successfully deleted.API name:
deleted -
failures
Required - The list of failures that occurred during the operation.API name:
failures -
noops
public final long noops()Required - The number of documents that were ignored.API name:
noops -
requestsPerSecond
public final float requestsPerSecond()Required - The number of requests per second effectively executed during the reindex operation.API name:
requests_per_second -
retries
Required - API name:retries -
sliceId
API name:slice_id -
slices
API name:slices -
throttled
API name:throttled -
throttledMillis
public final long throttledMillis()Required - API name:throttled_millis -
throttledUntil
The amount time before the throttling will end.API name:
throttled_until -
throttledUntilMillis
public final long throttledUntilMillis()Required - When the throttling will end in milliseconds.API name:
throttled_until_millis -
timedOut
public final boolean timedOut()Required - Whether the operation timed out.API name:
timed_out -
took
public final long took()Required - The time taken by the operation in milliseconds.API name:
took -
total
public final long total()Required - The number of documents that were successfully processed.API name:
total -
updated
The number of documents that were successfully updated after the reindex operation.API name:
updated -
versionConflicts
public final long versionConflicts()Required - The number of version conflicts encountered by the reindex operation.API name:
version_conflicts -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<TaskResponse.Builder,TaskResponse> - Returns:
- a new builder instance.
-
builder
-
setupTaskResponseDeserializer
-
hashCode
public int hashCode() -
equals
-