public class PutIndexedScriptResponse extends ActionResponse
TransportResponse.Empty
headers
Constructor and Description |
---|
PutIndexedScriptResponse() |
PutIndexedScriptResponse(String type,
String id,
long version,
boolean created) |
Modifier and Type | Method and Description |
---|---|
String |
getId()
The id of the document indexed.
|
String |
getIndex()
The index the document was indexed into.
|
String |
getScriptLang()
The type of the document indexed.
|
long |
getVersion()
Returns the current version of the doc indexed.
|
boolean |
isCreated()
Returns true if the document was created, false if updated.
|
void |
readFrom(StreamInput in) |
void |
writeTo(StreamOutput out) |
remoteAddress, remoteAddress
contextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContext
public String getIndex()
public String getScriptLang()
public String getId()
public long getVersion()
public boolean isCreated()
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class ActionResponse
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class ActionResponse
IOException
Copyright © 2009–2016. All rights reserved.