public class GetIndexedScriptResponse extends ActionResponse implements Iterable<GetField>, ToXContent
GetIndexedScriptRequestTransportResponse.EmptyToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsheadersEMPTY_PARAMS| Modifier and Type | Method and Description |
|---|---|
String |
getId()
The id of the document.
|
String |
getScript()
The source of the document (as a string).
|
String |
getScriptLang()
The type of the document.
|
long |
getVersion()
The version of the doc.
|
boolean |
isExists()
Does the document exists.
|
Iterator<GetField> |
iterator() |
void |
readFrom(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
remoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextpublic boolean isExists()
public String getScriptLang()
public String getId()
public long getVersion()
public String getScript()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class ActionResponseIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class ActionResponseIOExceptionCopyright © 2009–2017. All rights reserved.