Module org.elasticsearch.xcore
Class NlpConfigUpdate
java.lang.Object
org.elasticsearch.xpack.core.ml.inference.trainedmodel.NlpConfigUpdate
- All Implemented Interfaces:
NamedWriteable,VersionedNamedWriteable,Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject,InferenceConfigUpdate,NamedXContentObject
- Direct Known Subclasses:
FillMaskConfigUpdate,NerConfigUpdate,PassThroughConfigUpdate,QuestionAnsweringConfigUpdate,TextClassificationConfigUpdate,TextEmbeddingConfigUpdate,TextExpansionConfigUpdate,TextSimilarityConfigUpdate,ZeroShotClassificationConfigUpdate
public abstract class NlpConfigUpdate
extends Object
implements InferenceConfigUpdate, NamedXContentObject
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xpack.core.ml.inference.trainedmodel.InferenceConfigUpdate
InferenceConfigUpdate.Builder<T extends InferenceConfigUpdate.Builder<T,U>, U extends InferenceConfigUpdate> Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsFields inherited from interface org.elasticsearch.xpack.core.ml.inference.trainedmodel.InferenceConfigUpdate
RESERVED_ML_FIELD_NAMESFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract org.elasticsearch.xcontent.XContentBuilderdoXContentBody(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) getName()Required because this class implements 2 interfaces defining the methodString getName()and the compiler insists it must be resolved here in the abstract classprotected booleanisNoop()static TokenizationUpdatetokenizationFromMap(Map<String, Object> map) final org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xpack.core.ml.inference.trainedmodel.InferenceConfigUpdate
getResultsField, isEmpty, isSupported, newBuilderMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragmentMethods inherited from interface org.elasticsearch.common.io.stream.VersionedNamedWriteable
getMinimalSupportedVersion, getWriteableName
-
Field Details
-
tokenizationUpdate
-
-
Constructor Details
-
NlpConfigUpdate
-
NlpConfigUpdate
- Throws:
IOException
-
-
Method Details
-
tokenizationFromMap
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
isNoop
protected boolean isNoop() -
getTokenizationUpdate
-
toXContent
public final org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
doXContentBody
public abstract org.elasticsearch.xcontent.XContentBuilder doXContentBody(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Throws:
IOException
-
getName
Required because this class implements 2 interfaces defining the methodString getName()and the compiler insists it must be resolved here in the abstract class- Specified by:
getNamein interfaceInferenceConfigUpdate- Specified by:
getNamein interfaceNamedXContentObject- Returns:
- The name of the XContentObject that is to be serialized
-