- All Implemented Interfaces:
WriteResponse,Writeable,RefCounted,ToXContent,ToXContentObject
This is an IndexResponse that is specifically for simulate requests. Unlike typical IndexResponses, we need to include the original
source in a SimulateIndexResponse, and don't need most other fields. This has to extend IndexResponse though so that it can be used by
BulkItemResponse in IngestService.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.action.index.IndexResponse
IndexResponse.BuilderNested 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
Fields inherited from class org.elasticsearch.action.index.IndexResponse
executedPipelinesFields 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
ConstructorsConstructorDescriptionSimulateIndexResponse(String id, String index, long version, BytesReference source, XContentType sourceXContentType, List<String> pipelines, Collection<String> ignoredFields, Exception exception) -
Method Summary
Modifier and TypeMethodDescriptioninnerToXContent(XContentBuilder builder, ToXContent.Params params) status()returns the rest status for this response (based onReplicationResponse.ShardInfo.status()toString()voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.index.IndexResponse
getFailureStoreStatus, setFailureStoreStatus, writeThinMethods inherited from class org.elasticsearch.action.DocWriteResponse
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, remoteAddress, remoteAddress, 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
-
Constructor Details
-
SimulateIndexResponse
- Throws:
IOException
-
SimulateIndexResponse
public SimulateIndexResponse(String id, String index, long version, BytesReference source, XContentType sourceXContentType, List<String> pipelines, Collection<String> ignoredFields, @Nullable Exception exception)
-
-
Method Details
-
innerToXContent
public XContentBuilder innerToXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Overrides:
innerToXContentin classIndexResponse- Throws:
IOException
-
status
Description copied from class:DocWriteResponsereturns the rest status for this response (based onReplicationResponse.ShardInfo.status()- Overrides:
statusin classIndexResponse
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classIndexResponse- Throws:
IOException
-
getException
-
toString
- Overrides:
toStringin classIndexResponse
-