public class DeleteIndexedScriptRequest extends ActionRequest<DeleteIndexedScriptRequest> implements IndicesRequest
The operation requires the , scriptLang(String)
and id(String)
to
be set.
TransportRequest.Empty
IndicesRequest.Replaceable
headers
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, getDescription
remoteAddress, remoteAddress
contextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContext
public ActionRequestValidationException validate()
validate
in class ActionRequest<DeleteIndexedScriptRequest>
public String[] indices()
IndicesRequest
indices
in interface IndicesRequest
public IndicesOptions indicesOptions()
IndicesRequest
indicesOptions
in interface IndicesRequest
public 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 Streamable
readFrom
in class ActionRequest<DeleteIndexedScriptRequest>
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class ActionRequest<DeleteIndexedScriptRequest>
IOException
Copyright © 2009–2016. All rights reserved.