- 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.Builder
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.index.IndexResponse
executedPipelines
Fields inherited from class org.elasticsearch.action.DocWriteResponse
_ID, _INDEX, _PRIMARY_TERM, _SEQ_NO, _SHARDS, _VERSION, FORCED_REFRESH, result, 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
ConstructorsConstructorDescriptionSimulateIndexResponse
(String id, String index, long version, BytesReference source, XContentType sourceXContentType, List<String> pipelines, 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()
void
writeTo
(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.index.IndexResponse
getFailureStoreStatus, setFailureStoreStatus, writeThin
Methods inherited from class org.elasticsearch.action.DocWriteResponse
forcedRefresh, getId, getIndex, getLocation, getPrimaryTerm, getResult, getSeqNo, getShardId, getVersion, 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
-
Constructor Details
-
SimulateIndexResponse
- Throws:
IOException
-
SimulateIndexResponse
public SimulateIndexResponse(String id, String index, long version, BytesReference source, XContentType sourceXContentType, List<String> pipelines, @Nullable Exception exception)
-
-
Method Details
-
innerToXContent
public XContentBuilder innerToXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Overrides:
innerToXContent
in classIndexResponse
- Throws:
IOException
-
status
Description copied from class:DocWriteResponse
returns the rest status for this response (based onReplicationResponse.ShardInfo.status()
- Overrides:
status
in classIndexResponse
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Overrides:
writeTo
in classIndexResponse
- Throws:
IOException
-
getException
-
toString
- Overrides:
toString
in classIndexResponse
-