Module org.elasticsearch.xcore
Class TokenizationConfigUpdate
java.lang.Object
org.elasticsearch.xpack.core.ml.inference.trainedmodel.TokenizationConfigUpdate
- All Implemented Interfaces:
NamedWriteable,VersionedNamedWriteable,Writeable,InferenceConfigUpdate
An update that sets the tokenization truncate option to NONE
and updates the span and max sequence length settings.
-
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.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_NAMES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()booleanisSupported(InferenceConfig config) InferenceConfigUpdate.Builder<? extends InferenceConfigUpdate.Builder<?, ?>, ? extends InferenceConfigUpdate> voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xpack.core.ml.inference.trainedmodel.InferenceConfigUpdate
getName, isEmptyMethods inherited from interface org.elasticsearch.common.io.stream.VersionedNamedWriteable
supportsVersion
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
TokenizationConfigUpdate
-
TokenizationConfigUpdate
- Throws:
IOException
-
-
Method Details
-
getSpanSettings
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable- Specified by:
getWriteableNamein interfaceVersionedNamedWriteable
-
getMinimalSupportedVersion
- Specified by:
getMinimalSupportedVersionin interfaceVersionedNamedWriteable
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
isSupported
- Specified by:
isSupportedin interfaceInferenceConfigUpdate
-
getResultsField
- Specified by:
getResultsFieldin interfaceInferenceConfigUpdate
-
newBuilder
public InferenceConfigUpdate.Builder<? extends InferenceConfigUpdate.Builder<?,?>, newBuilder()? extends InferenceConfigUpdate> - Specified by:
newBuilderin interfaceInferenceConfigUpdate
-
equals
-
hashCode
public int hashCode()
-