WriteRequestBuilder<DeleteRequestBuilder>public class DeleteRequestBuilder extends ReplicationRequestBuilder<DeleteRequest,DeleteResponse,DeleteRequestBuilder> implements WriteRequestBuilder<DeleteRequestBuilder>
action, client, request| Constructor | Description |
|---|---|
DeleteRequestBuilder(ElasticsearchClient client,
DeleteAction action) |
|
DeleteRequestBuilder(ElasticsearchClient client,
DeleteAction action,
java.lang.String index) |
| Modifier and Type | Method | Description |
|---|---|---|
DeleteRequestBuilder |
setId(java.lang.String id) |
Sets the id of the document to delete.
|
DeleteRequestBuilder |
setParent(java.lang.String parent) |
Sets the parent id of this document.
|
DeleteRequestBuilder |
setRouting(java.lang.String routing) |
Controls the shard routing of the delete request.
|
DeleteRequestBuilder |
setType(java.lang.String type) |
Sets the type of the document to delete.
|
DeleteRequestBuilder |
setVersion(long version) |
Sets the version, which will cause the delete operation to only be performed if a matching
version exists and no changes happened on the doc since then.
|
DeleteRequestBuilder |
setVersionType(VersionType versionType) |
Sets the type of versioning to use.
|
execute, execute, get, get, get, requestclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetIndex, setTimeout, setTimeout, setWaitForActiveShards, setWaitForActiveShardsrequest, setRefreshPolicy, setRefreshPolicypublic DeleteRequestBuilder(ElasticsearchClient client, DeleteAction action)
public DeleteRequestBuilder(ElasticsearchClient client, DeleteAction action, @Nullable java.lang.String index)
public DeleteRequestBuilder setType(java.lang.String type)
public DeleteRequestBuilder setId(java.lang.String id)
public DeleteRequestBuilder setParent(java.lang.String parent)
public DeleteRequestBuilder setRouting(java.lang.String routing)
public DeleteRequestBuilder setVersion(long version)
public DeleteRequestBuilder setVersionType(VersionType versionType)
VersionType.INTERNAL.