public class IndexResponse extends DocWriteResponse
IndexRequest
,
Client.index(IndexRequest)
DocWriteResponse.Result
ReplicationResponse.ShardInfo
TransportResponse.Empty
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
result
EMPTY
EMPTY_PARAMS
Constructor and Description |
---|
IndexResponse() |
IndexResponse(ShardId shardId,
java.lang.String type,
java.lang.String id,
long version,
boolean created) |
Modifier and Type | Method and Description |
---|---|
RestStatus |
status()
returns the rest status for this response (based on
ShardInfo#status() |
java.lang.String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
forcedRefresh, getId, getIndex, getLocation, getResult, getShardId, getType, getVersion, readFrom, setForcedRefresh, writeTo
getShardInfo, setShardInfo
remoteAddress, remoteAddress
public IndexResponse()
public IndexResponse(ShardId shardId, java.lang.String type, java.lang.String id, long version, boolean created)
public RestStatus status()
DocWriteResponse
ShardInfo#status()
status
in interface StatusToXContent
status
in class DocWriteResponse
public java.lang.String toString()
toString
in class java.lang.Object
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
toXContent
in class DocWriteResponse
java.io.IOException