Class DeleteRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<DeleteRequest.Builder>
co.elastic.clients.elasticsearch.core.DeleteRequest.Builder
- All Implemented Interfaces:
WithJson<DeleteRequest.Builder>,ObjectBuilder<DeleteRequest>
- Enclosing class:
- DeleteRequest
public static class DeleteRequest.Builder
extends RequestBase.AbstractBuilder<DeleteRequest.Builder>
implements ObjectBuilder<DeleteRequest>
Builder for
DeleteRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDeleteRequest.final DeleteRequest.BuilderRequired - The document IDfinal DeleteRequest.BuilderifPrimaryTerm(Long value) only perform the delete operation if the last operation that has changed the document has the specified primary termfinal DeleteRequest.Builderonly perform the delete operation if the last operation that has changed the document has the specified sequence numberfinal DeleteRequest.BuilderRequired - The name of the indexfinal DeleteRequest.BuilderIftruethen refresh the affected shards to make this operation visible to search, ifwait_forthen wait for a refresh to make this operation visible to search, iffalse(the default) then do nothing with refreshes.final DeleteRequest.BuilderSpecific routing valueprotected DeleteRequest.Builderself()final DeleteRequest.BuilderExplicit operation timeoutfinal DeleteRequest.BuilderExplicit operation timeoutfinal DeleteRequest.BuilderThe type of the documentfinal DeleteRequest.BuilderExplicit version number for concurrency controlfinal DeleteRequest.BuilderversionType(VersionType value) Specific version typefinal DeleteRequest.BuilderSets the number of shard copies that must be active before proceeding with the delete operation.final DeleteRequest.BuilderSets the number of shard copies that must be active before proceeding with the delete operation.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
Required - The document IDAPI name:
id -
ifPrimaryTerm
only perform the delete operation if the last operation that has changed the document has the specified primary termAPI name:
if_primary_term -
ifSeqNo
only perform the delete operation if the last operation that has changed the document has the specified sequence numberAPI name:
if_seq_no -
index
Required - The name of the indexAPI name:
index -
refresh
Iftruethen refresh the affected shards to make this operation visible to search, ifwait_forthen wait for a refresh to make this operation visible to search, iffalse(the default) then do nothing with refreshes.API name:
refresh -
routing
Specific routing valueAPI name:
routing -
timeout
Explicit operation timeoutAPI name:
timeout -
timeout
Explicit operation timeoutAPI name:
timeout -
type
The type of the documentAPI name:
type -
version
Explicit version number for concurrency controlAPI name:
version -
versionType
Specific version typeAPI name:
version_type -
waitForActiveShards
Sets the number of shard copies that must be active before proceeding with the delete operation. Defaults to 1, meaning the primary shard only. Set toallfor all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)API name:
wait_for_active_shards -
waitForActiveShards
public final DeleteRequest.Builder waitForActiveShards(Function<WaitForActiveShards.Builder, ObjectBuilder<WaitForActiveShards>> fn) Sets the number of shard copies that must be active before proceeding with the delete operation. Defaults to 1, meaning the primary shard only. Set toallfor all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)API name:
wait_for_active_shards -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<DeleteRequest.Builder>
-
build
Builds aDeleteRequest.- Specified by:
buildin interfaceObjectBuilder<DeleteRequest>- Throws:
NullPointerException- if some of the required fields are null.
-