Package org.elasticsearch.action.ingest
Class SimulateProcessorResult
- java.lang.Object
-
- org.elasticsearch.action.ingest.SimulateProcessorResult
-
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
public class SimulateProcessorResult extends Object implements Writeable, ToXContentObject
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.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 Modifier and Type Field Description static ConstructingObjectParser<SimulateProcessorResult,Void>PARSER-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Constructor Description SimulateProcessorResult(String processorTag)SimulateProcessorResult(String processorTag, Exception failure)SimulateProcessorResult(String processorTag, IngestDocument ingestDocument)SimulateProcessorResult(String processorTag, IngestDocument ingestDocument, Exception failure)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SimulateProcessorResultfromXContent(XContentParser parser)ExceptiongetFailure()IngestDocumentgetIngestDocument()StringgetProcessorTag()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)voidwriteTo(StreamOutput out)Write this into the StreamOutput.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
-
-
-
Field Detail
-
PARSER
public static final ConstructingObjectParser<SimulateProcessorResult,Void> PARSER
-
-
Constructor Detail
-
SimulateProcessorResult
public SimulateProcessorResult(String processorTag, IngestDocument ingestDocument, Exception failure)
-
SimulateProcessorResult
public SimulateProcessorResult(String processorTag, IngestDocument ingestDocument)
-
SimulateProcessorResult
public SimulateProcessorResult(String processorTag)
-
-
Method Detail
-
writeTo
public void writeTo(StreamOutput out) throws IOException
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getIngestDocument
public IngestDocument getIngestDocument()
-
getProcessorTag
public String getProcessorTag()
-
getFailure
public Exception getFailure()
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
fromXContent
public static SimulateProcessorResult fromXContent(XContentParser parser)
-
-