Package org.opensearch.ml.common.model
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.ParamsNested 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
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected Stringstatic final Stringprotected StringFields inherited from interface org.opensearch.core.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionMLModelConfig(String modelType, String allConfig) MLModelConfig(org.opensearch.core.common.io.stream.StreamInput in) -
Method Summary
Modifier and TypeMethodDescriptionvoidsetAllConfig(String allConfig) voidsetModelType(String modelType) voidwriteTo(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, waitMethods inherited from interface org.opensearch.core.common.io.stream.NamedWriteable
getWriteableNameMethods inherited from interface org.opensearch.core.xcontent.ToXContent
toXContentMethods inherited from interface org.opensearch.core.xcontent.ToXContentObject
isFragment
-
Field Details
-
MODEL_TYPE_FIELD
- See Also:
-
ALL_CONFIG_FIELD
- See Also:
-
modelType
-
allConfig
-
-
Constructor Details
-
MLModelConfig
-
MLModelConfig
- Throws:
IOException
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceorg.opensearch.core.common.io.stream.Writeable- Throws:
IOException
-
setModelType
-
setAllConfig
-
getModelType
-
getAllConfig
-