Class SplitProcessor.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch.ingest.ProcessorBase.AbstractBuilder<SplitProcessor.Builder>
co.elastic.clients.elasticsearch.ingest.SplitProcessor.Builder
- All Implemented Interfaces:
WithJson<SplitProcessor.Builder>,ObjectBuilder<SplitProcessor>
- Enclosing class:
- SplitProcessor
public static class SplitProcessor.Builder
extends ProcessorBase.AbstractBuilder<SplitProcessor.Builder>
implements ObjectBuilder<SplitProcessor>
Builder for
SplitProcessor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aSplitProcessor.final SplitProcessor.BuilderRequired - The field to split.final SplitProcessor.BuilderignoreMissing(Boolean value) Iftrueandfielddoes not exist, the processor quietly exits without modifying the document.final SplitProcessor.BuilderpreserveTrailing(Boolean value) Preserves empty trailing fields, if any.protected SplitProcessor.Builderself()final SplitProcessor.BuilderRequired - A regex which matches the separator, for example,,or\s+.final SplitProcessor.BuildertargetField(String value) The field to assign the split value to.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 split.API name:
field -
ignoreMissing
Iftrueandfielddoes not exist, the processor quietly exits without modifying the document.API name:
ignore_missing -
preserveTrailing
Preserves empty trailing fields, if any.API name:
preserve_trailing -
separator
Required - A regex which matches the separator, for example,,or\s+.API name:
separator -
targetField
The field to assign the split value to. By default, the field is updated in-place.API name:
target_field -
self
- Specified by:
selfin classProcessorBase.AbstractBuilder<SplitProcessor.Builder>
-
build
Builds aSplitProcessor.- Specified by:
buildin interfaceObjectBuilder<SplitProcessor>- Throws:
NullPointerException- if some of the required fields are null.
-