Class SplitProcessor.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ingest.ProcessorBase.AbstractBuilder<SplitProcessor.Builder>
org.opensearch.client.opensearch.ingest.SplitProcessor.Builder
- All Implemented Interfaces:
CopyableBuilder<SplitProcessor.Builder,,SplitProcessor> MutableBuilder<SplitProcessor.Builder,,SplitProcessor> ObjectBuilder<SplitProcessor>
- Enclosing class:
SplitProcessor
public static class SplitProcessor.Builder
extends ProcessorBase.AbstractBuilder<SplitProcessor.Builder>
implements CopyableBuilder<SplitProcessor.Builder,SplitProcessor>
Builder for
SplitProcessor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aSplitProcessor.copy()Create a new builderCopyableBuilderthat is a copy of this one.final SplitProcessor.BuilderRequired - API name:fieldfinal 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) API name:target_fieldMethods 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<SplitProcessor.Builder,SplitProcessor> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classProcessorBase.AbstractBuilder<SplitProcessor.Builder>
-
field
Required - 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
API name:target_field -
build
Builds aSplitProcessor.- Specified by:
buildin interfaceObjectBuilder<SplitProcessor>- Throws:
NullPointerException- if some of the required fields are null.
-