WriteResponse, Streamable, Writeable, StatusToXContentObject, ToXContent, ToXContentObjectpublic class IndexResponse extends DocWriteResponse
IndexRequest,
Client.index(IndexRequest)| Modifier and Type | Class | Description |
|---|---|---|
static class |
IndexResponse.Builder |
Builder class for
IndexResponse. |
DocWriteResponse.ResultReplicationResponse.ShardInfoToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsTransportResponse.EmptyWriteable.Reader<V>, Writeable.Writer<V>resultEMPTYEMPTY_PARAMS| Constructor | Description |
|---|---|
IndexResponse() |
|
IndexResponse(ShardId shardId,
java.lang.String type,
java.lang.String id,
long seqNo,
long primaryTerm,
long version,
boolean created) |
| Modifier and Type | Method | Description |
|---|---|---|
static IndexResponse |
fromXContent(XContentParser parser) |
|
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
ReplicationResponse.ShardInfo.status() |
java.lang.String |
toString() |
forcedRefresh, getId, getIndex, getLocation, getPrimaryTerm, getResult, getSeqNo, getShardId, getType, getVersion, innerToXContent, parseInnerToXContent, readFrom, setForcedRefresh, toXContent, writeToclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetShardInfo, setShardInfonewWriteableReaderisFragmentremoteAddress, remoteAddresspublic IndexResponse()
public IndexResponse(ShardId shardId, java.lang.String type, java.lang.String id, long seqNo, long primaryTerm, long version, boolean created)
public RestStatus status()
DocWriteResponseReplicationResponse.ShardInfo.status()status in interface StatusToXContentObjectstatus in class DocWriteResponsepublic java.lang.String toString()
toString in class java.lang.Objectpublic static IndexResponse fromXContent(XContentParser parser) throws java.io.IOException
java.io.IOExceptionpublic static void parseXContentFields(XContentParser parser, IndexResponse.Builder context) throws java.io.IOException
java.io.IOException