Class MLModelConfig

java.lang.Object
org.opensearch.ml.common.model.MLModelConfig
All Implemented Interfaces:
org.opensearch.core.common.io.stream.NamedWriteable, org.opensearch.core.common.io.stream.Writeable, org.opensearch.core.xcontent.ToXContent, org.opensearch.core.xcontent.ToXContentObject
Direct Known Subclasses:
MetricsCorrelationModelConfig, QuestionAnsweringModelConfig, TextEmbeddingModelConfig

public abstract class MLModelConfig extends Object implements org.opensearch.core.xcontent.ToXContentObject, org.opensearch.core.common.io.stream.NamedWriteable
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.opensearch.core.xcontent.ToXContent

    org.opensearch.core.xcontent.ToXContent.DelegatingMapParams, org.opensearch.core.xcontent.ToXContent.MapParams, org.opensearch.core.xcontent.ToXContent.Params

    Nested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable

    org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    protected String
     
    static final String
     
    protected String
     

    Fields inherited from interface org.opensearch.core.xcontent.ToXContent

    EMPTY_PARAMS
  • Constructor Summary

    Constructors
    Constructor
    Description
    MLModelConfig(String modelType, String allConfig)
     
    MLModelConfig(org.opensearch.core.common.io.stream.StreamInput in)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    void
    setAllConfig(String allConfig)
     
    void
    setModelType(String modelType)
     
    void
    writeTo(org.opensearch.core.common.io.stream.StreamOutput out)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.opensearch.core.common.io.stream.NamedWriteable

    getWriteableName

    Methods inherited from interface org.opensearch.core.xcontent.ToXContent

    toXContent

    Methods inherited from interface org.opensearch.core.xcontent.ToXContentObject

    isFragment
  • Field Details

  • Constructor Details

    • MLModelConfig

      public MLModelConfig(String modelType, String allConfig)
    • MLModelConfig

      public MLModelConfig(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
      Throws:
      IOException
    • setModelType

      public void setModelType(String modelType)
    • setAllConfig

      public void setAllConfig(String allConfig)
    • getModelType

      public String getModelType()
    • getAllConfig

      public String getAllConfig()