|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.elasticsearch.client.action.support.BaseRequestBuilder<DeleteRequest,DeleteResponse>
org.elasticsearch.client.action.delete.DeleteRequestBuilder
public class DeleteRequestBuilder
A delete document action request builder.
Field Summary |
---|
Fields inherited from class org.elasticsearch.client.action.support.BaseRequestBuilder |
---|
client, request |
Constructor Summary | |
---|---|
DeleteRequestBuilder(Client client,
java.lang.String index)
|
Method Summary | |
---|---|
protected void |
doExecute(ActionListener<DeleteResponse> listener)
|
DeleteRequestBuilder |
setConsistencyLevel(WriteConsistencyLevel consistencyLevel)
Sets the consistency level. |
DeleteRequestBuilder |
setId(java.lang.String id)
Sets the id of the document to delete. |
DeleteRequestBuilder |
setIndex(java.lang.String index)
Sets the index the delete will happen on. |
DeleteRequestBuilder |
setListenerThreaded(boolean threadedListener)
Should the listener be called on a separate thread if needed. |
DeleteRequestBuilder |
setOperationThreaded(boolean threadedOperation)
Controls if the operation will be executed on a separate thread when executed locally. |
DeleteRequestBuilder |
setRefresh(boolean refresh)
Should a refresh be executed post this index operation causing the operation to be searchable. |
DeleteRequestBuilder |
setReplicationType(ReplicationType replicationType)
Set the replication type for this operation. |
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. |
Methods inherited from class org.elasticsearch.client.action.support.BaseRequestBuilder |
---|
execute, execute, request |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DeleteRequestBuilder(Client client, @Nullable java.lang.String index)
Method Detail |
---|
public DeleteRequestBuilder setIndex(java.lang.String index)
public DeleteRequestBuilder setType(java.lang.String type)
public DeleteRequestBuilder setId(java.lang.String id)
public DeleteRequestBuilder setRouting(java.lang.String routing)
public DeleteRequestBuilder setRefresh(boolean refresh)
public DeleteRequestBuilder setVersion(long version)
public DeleteRequestBuilder setVersionType(VersionType versionType)
VersionType.INTERNAL
.
public DeleteRequestBuilder setListenerThreaded(boolean threadedListener)
public DeleteRequestBuilder setOperationThreaded(boolean threadedOperation)
public DeleteRequestBuilder setReplicationType(ReplicationType replicationType)
public DeleteRequestBuilder setConsistencyLevel(WriteConsistencyLevel consistencyLevel)
WriteConsistencyLevel.DEFAULT
.
protected void doExecute(ActionListener<DeleteResponse> listener)
doExecute
in class BaseRequestBuilder<DeleteRequest,DeleteResponse>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |