public class DeleteIndexedScriptRequest extends ActionRequest<DeleteIndexedScriptRequest> implements IndicesRequest
The operation requires the , scriptLang(String) and id(String) to
be set.
TransportRequest.EmptyIndicesRequest.Replaceableheaders| Constructor and Description |
|---|
DeleteIndexedScriptRequest() |
DeleteIndexedScriptRequest(String scriptLang,
String id)
Constructs a new delete request against the specified index with the scriptLang and id.
|
| Modifier and Type | Method and Description |
|---|---|
String |
id()
The id of the document to delete.
|
DeleteIndexedScriptRequest |
id(String id)
Sets the id of the document to delete.
|
String[] |
indices()
Returns the array of indices that the action relates to
|
IndicesOptions |
indicesOptions()
Returns the indices options used to resolve indices.
|
void |
readFrom(StreamInput in) |
String |
scriptLang()
The scriptLang of the document to delete.
|
DeleteIndexedScriptRequest |
scriptLang(String type)
Sets the scriptLang of the document to delete.
|
String |
toString() |
ActionRequestValidationException |
validate() |
long |
version() |
DeleteIndexedScriptRequest |
version(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.
|
VersionType |
versionType() |
DeleteIndexedScriptRequest |
versionType(VersionType versionType) |
void |
writeTo(StreamOutput out) |
createTask, getDescriptionremoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextpublic ActionRequestValidationException validate()
validate in class ActionRequest<DeleteIndexedScriptRequest>public String[] indices()
IndicesRequestindices in interface IndicesRequestpublic IndicesOptions indicesOptions()
IndicesRequestindicesOptions in interface IndicesRequestpublic String scriptLang()
public DeleteIndexedScriptRequest scriptLang(String type)
public String id()
public DeleteIndexedScriptRequest id(String id)
public DeleteIndexedScriptRequest version(long version)
public long version()
public DeleteIndexedScriptRequest versionType(VersionType versionType)
public VersionType versionType()
public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class ActionRequest<DeleteIndexedScriptRequest>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class ActionRequest<DeleteIndexedScriptRequest>IOExceptionCopyright © 2009–2016. All rights reserved.