Class AppendProcessor.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch.ingest.ProcessorBase.AbstractBuilder<AppendProcessor.Builder>
co.elastic.clients.elasticsearch.ingest.AppendProcessor.Builder
- All Implemented Interfaces:
WithJson<AppendProcessor.Builder>,ObjectBuilder<AppendProcessor>
- Enclosing class:
- AppendProcessor
public static class AppendProcessor.Builder
extends ProcessorBase.AbstractBuilder<AppendProcessor.Builder>
implements ObjectBuilder<AppendProcessor>
Builder for
AppendProcessor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal AppendProcessor.BuilderallowDuplicates(Boolean value) Iffalse, the processor does not append values already present in the field.build()Builds aAppendProcessor.final AppendProcessor.BuilderThe origin field which will be appended tofield, cannot setvaluesimultaneously.final AppendProcessor.BuilderRequired - The field to be appended to.protected AppendProcessor.Builderself()final AppendProcessor.BuilderThe value to be appended.final AppendProcessor.BuilderThe value to be appended.Methods inherited from class co.elastic.clients.elasticsearch.ingest.ProcessorBase.AbstractBuilder
description, if_, if_, ignoreFailure, onFailure, onFailure, onFailure, onFailure, tagMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
field
Required - The field to be appended to. Supports template snippets.API name:
field -
value
The value to be appended. Supports template snippets. May specify only one ofvalueorcopy_from.API name:
valueAdds all elements of
listtovalue. -
value
The value to be appended. Supports template snippets. May specify only one ofvalueorcopy_from.API name:
valueAdds one or more values to
value. -
copyFrom
The origin field which will be appended tofield, cannot setvaluesimultaneously.API name:
copy_from -
allowDuplicates
Iffalse, the processor does not append values already present in the field.API name:
allow_duplicates -
self
- Specified by:
selfin classProcessorBase.AbstractBuilder<AppendProcessor.Builder>
-
build
Builds aAppendProcessor.- Specified by:
buildin interfaceObjectBuilder<AppendProcessor>- Throws:
NullPointerException- if some of the required fields are null.
-