- All Implemented Interfaces:
WriteResponse
,Writeable
,RefCounted
,ToXContent
,ToXContentObject
- Direct Known Subclasses:
SimulateIndexResponse
A response of an index operation,
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.action.DocWriteResponse
DocWriteResponse.Result
Nested classes/interfaces inherited from class org.elasticsearch.action.support.replication.ReplicationResponse
ReplicationResponse.ShardInfo
Nested classes/interfaces inherited from class org.elasticsearch.action.ActionResponse
ActionResponse.Empty
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Fields inherited from class org.elasticsearch.action.DocWriteResponse
result
Fields inherited from class org.elasticsearch.action.support.replication.ReplicationResponse
NO_FAILURES
Fields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS
-
Constructor Summary
ConstructorDescriptionIndexResponse
(ShardId shardId, String id, long seqNo, long primaryTerm, long version, boolean created) IndexResponse
(ShardId shardId, String id, long seqNo, long primaryTerm, long version, boolean created, List<String> executedPipelines) IndexResponse
(ShardId shardId, StreamInput in) -
Method Summary
Modifier and TypeMethodDescriptionstatic IndexResponse
fromXContent
(XContentParser parser) innerToXContent
(XContentBuilder builder, ToXContent.Params params) static void
parseXContentFields
(XContentParser parser, IndexResponse.Builder context) Parse the current token and update the parsing context appropriately.status()
returns the rest status for this response (based onReplicationResponse.ShardInfo.status()
toString()
void
writeThin
(StreamOutput out) void
writeTo
(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.DocWriteResponse
forcedRefresh, getId, getIndex, getLocation, getPrimaryTerm, getResult, getSeqNo, getShardId, getVersion, parseInnerToXContent, setForcedRefresh, toXContent
Methods inherited from class org.elasticsearch.action.support.replication.ReplicationResponse
getShardInfo, setShardInfo
Methods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, remoteAddress, remoteAddress, tryIncRef
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.core.RefCounted
mustIncRef
Methods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
executedPipelines
-
-
Constructor Details
-
IndexResponse
- Throws:
IOException
-
IndexResponse
- Throws:
IOException
-
IndexResponse
-
IndexResponse
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Overrides:
writeTo
in classDocWriteResponse
- Throws:
IOException
-
writeThin
- Overrides:
writeThin
in classDocWriteResponse
- Throws:
IOException
-
innerToXContent
public XContentBuilder innerToXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Overrides:
innerToXContent
in classDocWriteResponse
- Throws:
IOException
-
status
Description copied from class:DocWriteResponse
returns the rest status for this response (based onReplicationResponse.ShardInfo.status()
- Overrides:
status
in classDocWriteResponse
-
toString
-
fromXContent
- Throws:
IOException
-
parseXContentFields
public static void parseXContentFields(XContentParser parser, IndexResponse.Builder context) throws IOException Parse the current token and update the parsing context appropriately.- Throws:
IOException
-