WriteResponse
, Streamable
, Writeable
, StatusToXContentObject
, ToXContent
, ToXContentObject
public class IndexResponse extends DocWriteResponse
IndexRequest
,
Client.index(IndexRequest)
Modifier and Type | Class | Description |
---|---|---|
static class |
IndexResponse.Builder |
Builder class for
IndexResponse . |
DocWriteResponse.Result
ReplicationResponse.ShardInfo
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
TransportResponse.Empty
Writeable.Reader<V>, Writeable.Writer<V>
result
EMPTY
EMPTY_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, writeTo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getShardInfo, setShardInfo
isFragment
remoteAddress, remoteAddress
public IndexResponse()
public IndexResponse(ShardId shardId, java.lang.String type, java.lang.String id, long seqNo, long primaryTerm, long version, boolean created)
public RestStatus status()
DocWriteResponse
ReplicationResponse.ShardInfo.status()
status
in interface StatusToXContentObject
status
in class DocWriteResponse
public java.lang.String toString()
toString
in class java.lang.Object
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