public class IndexResponse extends DocWriteResponse
IndexRequest
,
Client.index(IndexRequest)
Modifier and Type | Class and Description |
---|---|
static class |
IndexResponse.Builder
Builder class for
IndexResponse . |
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 |
---|---|
static IndexResponse |
fromXContent(XContentParser parser) |
XContentBuilder |
innerToXContent(XContentBuilder builder,
ToXContent.Params params) |
static void |
parseXContentFields(XContentParser parser,
IndexResponse.Builder context)
Parse the current token and update the parsing context appropriately.
|
RestStatus |
status()
returns the rest status for this response (based on
ShardInfo#status() |
java.lang.String |
toString() |
forcedRefresh, getId, getIndex, getLocation, getResult, getShardId, getType, getVersion, parseInnerToXContent, readFrom, setForcedRefresh, toXContent, writeTo
getShardInfo, setShardInfo
remoteAddress, remoteAddress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isFragment
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 StatusToXContentObject
status
in class DocWriteResponse
public java.lang.String toString()
toString
in class java.lang.Object
public XContentBuilder innerToXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
innerToXContent
in class DocWriteResponse
java.io.IOException
public static IndexResponse fromXContent(XContentParser parser) throws java.io.IOException
java.io.IOException
public static void parseXContentFields(XContentParser parser, IndexResponse.Builder context) throws java.io.IOException
java.io.IOException