Class ForeachProcessor.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch.ingest.ProcessorBase.AbstractBuilder<ForeachProcessor.Builder>
co.elastic.clients.elasticsearch.ingest.ForeachProcessor.Builder
- All Implemented Interfaces:
WithJson<ForeachProcessor.Builder>,ObjectBuilder<ForeachProcessor>
- Enclosing class:
- ForeachProcessor
public static class ForeachProcessor.Builder
extends ProcessorBase.AbstractBuilder<ForeachProcessor.Builder>
implements ObjectBuilder<ForeachProcessor>
Builder for
ForeachProcessor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aForeachProcessor.final ForeachProcessor.BuilderRequired - Field containing array or object values.final ForeachProcessor.BuilderignoreMissing(Boolean value) Iftrue, the processor silently exits without changing the document if thefieldisnullor missing.final ForeachProcessor.BuilderRequired - Ingest processor to run on each element.final ForeachProcessor.Builderprocessor(ProcessorVariant value) Required - Ingest processor to run on each element.final ForeachProcessor.BuilderRequired - Ingest processor to run on each element.protected ForeachProcessor.Builderself()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 - Field containing array or object values.API name:
field -
ignoreMissing
Iftrue, the processor silently exits without changing the document if thefieldisnullor missing.API name:
ignore_missing -
processor
Required - Ingest processor to run on each element.API name:
processor -
processor
public final ForeachProcessor.Builder processor(Function<Processor.Builder, ObjectBuilder<Processor>> fn) Required - Ingest processor to run on each element.API name:
processor -
processor
Required - Ingest processor to run on each element.API name:
processor -
self
- Specified by:
selfin classProcessorBase.AbstractBuilder<ForeachProcessor.Builder>
-
build
Builds aForeachProcessor.- Specified by:
buildin interfaceObjectBuilder<ForeachProcessor>- Throws:
NullPointerException- if some of the required fields are null.
-