public class IndexResponse extends DocWriteResponse
IndexRequest,
Client.index(IndexRequest)| Modifier and Type | Class and Description |
|---|---|
static class |
IndexResponse.Builder
Builder class for
IndexResponse. |
DocWriteResponse.ResultReplicationResponse.ShardInfoTransportResponse.EmptyToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsresultEMPTYEMPTY_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, writeTogetShardInfo, setShardInforemoteAddress, remoteAddressclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisFragmentpublic IndexResponse()
public IndexResponse(ShardId shardId, java.lang.String type, java.lang.String id, long version, boolean created)
public RestStatus status()
DocWriteResponseShardInfo#status()status in interface StatusToXContentObjectstatus in class DocWriteResponsepublic java.lang.String toString()
toString in class java.lang.Objectpublic XContentBuilder innerToXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
innerToXContent in class DocWriteResponsejava.io.IOExceptionpublic 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