Class MLPredictionOutput

java.lang.Object
org.opensearch.ml.common.output.MLOutput
org.opensearch.ml.common.output.MLPredictionOutput
All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable, org.opensearch.core.xcontent.ToXContent, org.opensearch.core.xcontent.ToXContentObject, Output

public class MLPredictionOutput extends MLOutput
  • Field Details

  • Constructor Details

    • MLPredictionOutput

      public MLPredictionOutput(String taskId, String status, DataFrame predictionResult)
    • MLPredictionOutput

      public MLPredictionOutput(org.opensearch.core.common.io.stream.StreamInput in) throws IOException
      Throws:
      IOException
  • Method Details

    • writeTo

      public void writeTo(org.opensearch.core.common.io.stream.StreamOutput out) throws IOException
      Specified by:
      writeTo in interface org.opensearch.core.common.io.stream.Writeable
      Overrides:
      writeTo in class MLOutput
      Throws:
      IOException
    • toXContent

      public org.opensearch.core.xcontent.XContentBuilder toXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException
      Throws:
      IOException
    • getType

      public MLOutputType getType()
      Specified by:
      getType in class MLOutput
    • builder

    • getTaskId

      public String getTaskId()
    • getStatus

      public String getStatus()
    • getPredictionResult

      public DataFrame getPredictionResult()
    • setTaskId

      public void setTaskId(String taskId)
    • setStatus

      public void setStatus(String status)
    • setPredictionResult

      public void setPredictionResult(DataFrame predictionResult)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object