Class TextEmbeddingProcessor.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ingest.ProcessorBase.AbstractBuilder<TextEmbeddingProcessor.Builder>
org.opensearch.client.opensearch.ingest.TextEmbeddingProcessor.Builder
- All Implemented Interfaces:
CopyableBuilder<TextEmbeddingProcessor.Builder,,TextEmbeddingProcessor> MutableBuilder<TextEmbeddingProcessor.Builder,,TextEmbeddingProcessor> ObjectBuilder<TextEmbeddingProcessor>
- Enclosing class:
TextEmbeddingProcessor
public static class TextEmbeddingProcessor.Builder
extends ProcessorBase.AbstractBuilder<TextEmbeddingProcessor.Builder>
implements CopyableBuilder<TextEmbeddingProcessor.Builder,TextEmbeddingProcessor>
Builder for
TextEmbeddingProcessor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAPI name:batch_sizebuild()Builds aTextEmbeddingProcessor.copy()Create a new builderCopyableBuilderthat is a copy of this one.Required - Contains key-value pairs that specify the mapping of a text field to a vector field.Required - Contains key-value pairs that specify the mapping of a text field to a vector field.Required - API name:model_idprotected TextEmbeddingProcessor.Builderself()Methods inherited from class org.opensearch.client.opensearch.ingest.ProcessorBase.AbstractBuilder
description, if_, ignoreFailure, onFailure, onFailure, onFailure, tagMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<TextEmbeddingProcessor.Builder,TextEmbeddingProcessor> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classProcessorBase.AbstractBuilder<TextEmbeddingProcessor.Builder>
-
batchSize
API name:batch_size -
fieldMap
Required - Contains key-value pairs that specify the mapping of a text field to a vector field.API name:
field_mapAdds all elements of
maptofieldMap. -
fieldMap
Required - Contains key-value pairs that specify the mapping of a text field to a vector field.API name:
field_mapAdds an entry to
fieldMap. -
modelId
Required - API name:model_id -
build
Builds aTextEmbeddingProcessor.- Specified by:
buildin interfaceObjectBuilder<TextEmbeddingProcessor>- Throws:
NullPointerException- if some of the required fields are null.
-