public class IndexResponse extends ActionWriteResponse
IndexRequest,
Client.index(IndexRequest)ActionWriteResponse.ShardInfoTransportResponse.EmptyEMPTYheaders| Constructor and Description |
|---|
IndexResponse() |
IndexResponse(String index,
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 |
getType()
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) |
String |
toString() |
void |
writeTo(StreamOutput out) |
getShardInfo, setShardInforemoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextpublic String getIndex()
public String getType()
public String getId()
public long getVersion()
public boolean isCreated()
public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class ActionWriteResponseIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class ActionWriteResponseIOExceptionCopyright © 2009–2017. All rights reserved.