- All Implemented Interfaces:
WriteResponse,Writeable,RefCounted,ToXContent,ToXContentObject
- Direct Known Subclasses:
SimulateIndexResponse
A response of an index operation,
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.elasticsearch.action.DocWriteResponse
DocWriteResponse.ResultNested classes/interfaces inherited from class org.elasticsearch.action.support.replication.ReplicationResponse
ReplicationResponse.ShardInfoNested classes/interfaces inherited from class org.elasticsearch.action.ActionResponse
ActionResponse.EmptyNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsFields inherited from class org.elasticsearch.action.DocWriteResponse
_ID, _INDEX, _PRIMARY_TERM, _SEQ_NO, _SHARDS, _VERSION, FORCED_REFRESH, result, RESULTFields inherited from class org.elasticsearch.action.support.replication.ReplicationResponse
NO_FAILURESFields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCEDFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionIndexResponse(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, String id, long seqNo, long primaryTerm, long version, boolean created, List<String> executedPipelines, IndexDocFailureStoreStatus failureStoreStatus) IndexResponse(ShardId shardId, StreamInput in) -
Method Summary
Modifier and TypeMethodDescriptioninnerToXContent(XContentBuilder builder, ToXContent.Params params) voidsetFailureStoreStatus(IndexDocFailureStoreStatus failureStoreStatus) status()returns the rest status for this response (based onReplicationResponse.ShardInfo.status()toString()Returns an equivalent response with the sequence number and primary term set toSequenceNumbers.UNASSIGNED_SEQ_NOandSequenceNumbers.UNASSIGNED_PRIMARY_TERM.voidwriteThin(StreamOutput out) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.DocWriteResponse
copyMutableFieldsTo, forcedRefresh, getId, getIndex, getLocation, getPrimaryTerm, getResult, getSeqNo, getShardId, getVersion, setForcedRefresh, toXContentMethods inherited from class org.elasticsearch.action.support.replication.ReplicationResponse
getShardInfo, setShardInfoMethods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, tryIncRefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.core.RefCounted
mustIncRefMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
executedPipelines
-
-
Constructor Details
-
IndexResponse
- Throws:
IOException
-
IndexResponse
- Throws:
IOException
-
IndexResponse
-
IndexResponse
-
IndexResponse
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classDocWriteResponse- Throws:
IOException
-
writeThin
- Overrides:
writeThinin classDocWriteResponse- Throws:
IOException
-
innerToXContent
public XContentBuilder innerToXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Overrides:
innerToXContentin classDocWriteResponse- Throws:
IOException
-
withoutSequenceNumber
Description copied from class:DocWriteResponseReturns an equivalent response with the sequence number and primary term set toSequenceNumbers.UNASSIGNED_SEQ_NOandSequenceNumbers.UNASSIGNED_PRIMARY_TERM. Used to strip internal sequence numbers from user-facing responses whenindex.disable_sequence_numbersis enabled.- Specified by:
withoutSequenceNumberin classDocWriteResponse
-
status
Description copied from class:DocWriteResponsereturns the rest status for this response (based onReplicationResponse.ShardInfo.status()- Overrides:
statusin classDocWriteResponse
-
setFailureStoreStatus
-
getFailureStoreStatus
- Overrides:
getFailureStoreStatusin classDocWriteResponse
-
toString
-