Class SimulateDocumentBaseResult

java.lang.Object
org.elasticsearch.action.ingest.SimulateDocumentBaseResult
All Implemented Interfaces:
SimulateDocumentResult, Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObject

public final class SimulateDocumentBaseResult extends Object implements SimulateDocumentResult
Holds the end result of what a pipeline did to sample document provided via the simulate api.
  • Field Details

  • Constructor Details

    • SimulateDocumentBaseResult

      public SimulateDocumentBaseResult(IngestDocument ingestDocument)
    • SimulateDocumentBaseResult

      public SimulateDocumentBaseResult(Exception failure)
    • SimulateDocumentBaseResult

      public SimulateDocumentBaseResult(StreamInput in) throws IOException
      Read from a stream.
      Throws:
      IOException
  • Method Details

    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • getIngestDocument

      public IngestDocument getIngestDocument()
    • getFailure

      public Exception getFailure()
    • toXContent

      public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.common.xcontent.ToXContent
      Throws:
      IOException
    • fromXContent

      public static SimulateDocumentBaseResult fromXContent(org.elasticsearch.common.xcontent.XContentParser parser)