public class DeleteIndexedScriptRequest extends ActionRequest<DeleteIndexedScriptRequest> implements IndicesRequest
The operation requires the , scriptLang(String) and id(String) to
be set.
TransportRequest.EmptyIndicesRequest.Replaceableheaders| コンストラクタと説明 |
|---|
DeleteIndexedScriptRequest() |
DeleteIndexedScriptRequest(String scriptLang,
String id)
Constructs a new delete request against the specified index with the scriptLang and id.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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 クラス内 ActionRequest<DeleteIndexedScriptRequest>public String[] indices()
IndicesRequestindices インタフェース内 IndicesRequestpublic IndicesOptions indicesOptions()
IndicesRequestindicesOptions インタフェース内 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 インタフェース内 StreamablereadFrom クラス内 ActionRequest<DeleteIndexedScriptRequest>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo インタフェース内 StreamablewriteTo クラス内 ActionRequest<DeleteIndexedScriptRequest>IOExceptionCopyright © 2009–2016. All rights reserved.