Class TrainedModelDefinition

java.lang.Object
org.elasticsearch.xpack.core.ml.inference.TrainedModelDefinition
All Implemented Interfaces:
org.apache.lucene.util.Accountable, Writeable, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

public class TrainedModelDefinition extends Object implements org.elasticsearch.xcontent.ToXContentObject, Writeable, org.apache.lucene.util.Accountable
  • Field Details

    • NAME

      public static final String NAME
      See Also:
    • TRAINED_MODEL

      public static final org.elasticsearch.xcontent.ParseField TRAINED_MODEL
    • PREPROCESSORS

      public static final org.elasticsearch.xcontent.ParseField PREPROCESSORS
    • LENIENT_PARSER

      public static final org.elasticsearch.xcontent.ObjectParser<TrainedModelDefinition.Builder,Void> LENIENT_PARSER
    • STRICT_PARSER

      public static final org.elasticsearch.xcontent.ObjectParser<TrainedModelDefinition.Builder,Void> STRICT_PARSER
  • Constructor Details

  • Method Details

    • fromXContent

      public static TrainedModelDefinition.Builder fromXContent(org.elasticsearch.xcontent.XContentParser parser, boolean lenient) throws IOException
      Throws:
      IOException
    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • 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
    • getTrainedModel

      public TrainedModel getTrainedModel()
    • getPreProcessors

      public List<PreProcessor> getPreProcessors()
    • toString

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

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • ramBytesUsed

      public long ramBytesUsed()
      Specified by:
      ramBytesUsed in interface org.apache.lucene.util.Accountable
    • getChildResources

      public Collection<org.apache.lucene.util.Accountable> getChildResources()
      Specified by:
      getChildResources in interface org.apache.lucene.util.Accountable