Class SimulateDocumentBaseResult

java.lang.Object
org.elasticsearch.action.ingest.SimulateDocumentBaseResult
All Implemented Interfaces:
SimulateDocumentResult, Writeable, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.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.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.xcontent.ToXContent
      Throws:
      IOException
    • fromXContent

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