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
  • Field Details

  • Constructor Details

  • Method Details

    • tokenizationFromMap

      public static TokenizationUpdate tokenizationFromMap(Map<String,Object> map)
    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • isNoop

      protected boolean isNoop()
    • getTokenizationUpdate

      public TokenizationUpdate getTokenizationUpdate()
    • toXContent

      public final 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
    • doXContentBody

      public abstract org.elasticsearch.xcontent.XContentBuilder doXContentBody(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Throws:
      IOException
    • getName

      public String getName()
      Required because this class implements 2 interfaces defining the method String getName() and the compiler insists it must be resolved here in the abstract class
      Specified by:
      getName in interface InferenceConfigUpdate
      Specified by:
      getName in interface NamedXContentObject
      Returns:
      The name of the XContentObject that is to be serialized