Class UpdateOperation<TDocument,TPartialDocument>
java.lang.Object
co.elastic.clients.elasticsearch.core.bulk.BulkOperationBase
co.elastic.clients.elasticsearch.core.bulk.UpdateOperation<TDocument,TPartialDocument>
- All Implemented Interfaces:
BulkOperationVariant
,JsonpSerializable
,NdJsonpSerializable
public class UpdateOperation<TDocument,TPartialDocument>
extends BulkOperationBase
implements NdJsonpSerializable, BulkOperationVariant
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch.core.bulk.BulkOperationBase
BulkOperationBase.AbstractBuilder<BuilderT extends BulkOperationBase.AbstractBuilder<BuilderT>>
-
Method Summary
Modifier and TypeMethodDescriptionBulkOperation variant kind.Iterator<?>
action()
Update actionfinal BinaryData
Serialized representation of the update action.static <TDocument,
TPartialDocument>
UpdateOperation<TDocument,TPartialDocument> of
(Function<UpdateOperation.Builder<TDocument, TPartialDocument>, ObjectBuilder<UpdateOperation<TDocument, TPartialDocument>>> fn) final Boolean
Iftrue
, the request’s actions must target an index alias.final Integer
API name:retry_on_conflict
protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Methods inherited from class co.elastic.clients.elasticsearch.core.bulk.BulkOperationBase
id, ifPrimaryTerm, ifSeqNo, index, routing, serialize, setupBulkOperationBaseDeserializer, toString, version, versionType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface co.elastic.clients.elasticsearch.core.bulk.BulkOperationVariant
_toBulkOperation
-
Method Details
-
of
public static <TDocument,TPartialDocument> UpdateOperation<TDocument,TPartialDocument> of(Function<UpdateOperation.Builder<TDocument, TPartialDocument>, ObjectBuilder<UpdateOperation<TDocument, TPartialDocument>>> fn) -
_bulkOperationKind
BulkOperation variant kind.- Specified by:
_bulkOperationKind
in interfaceBulkOperationVariant
-
action
Update actionAPI name:
action
-
binaryAction
Serialized representation of the update action. You should useaction
instead. This binary representation is used by theBulkIngester
helper to compute the binary size of bulk requests.API name:
binary_action
-
_serializables
- Specified by:
_serializables
in interfaceNdJsonpSerializable
-
requireAlias
Iftrue
, the request’s actions must target an index alias.API name:
require_alias
-
retryOnConflict
API name:retry_on_conflict
-
serializeInternal
- Overrides:
serializeInternal
in classBulkOperationBase
-