Class JsonProcessor.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ingest.ProcessorBase.AbstractBuilder<JsonProcessor.Builder>
org.opensearch.client.opensearch.ingest.JsonProcessor.Builder
- All Implemented Interfaces:
CopyableBuilder<JsonProcessor.Builder,,JsonProcessor> MutableBuilder<JsonProcessor.Builder,,JsonProcessor> ObjectBuilder<JsonProcessor>
- Enclosing class:
JsonProcessor
public static class JsonProcessor.Builder
extends ProcessorBase.AbstractBuilder<JsonProcessor.Builder>
implements CopyableBuilder<JsonProcessor.Builder,JsonProcessor>
Builder for
JsonProcessor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal JsonProcessor.BuilderFlag that forces the parsed JSON to be added at the top level of the document.final JsonProcessor.BuilderAPI name:add_to_root_conflict_strategyfinal JsonProcessor.BuilderallowDuplicateKeys(Boolean value) When set totrue, the JSON parser will not fail if the JSON contains duplicate keys.build()Builds aJsonProcessor.copy()Create a new builderCopyableBuilderthat is a copy of this one.final JsonProcessor.BuilderRequired - API name:fieldprotected JsonProcessor.Builderself()final JsonProcessor.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<JsonProcessor.Builder,JsonProcessor> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classProcessorBase.AbstractBuilder<JsonProcessor.Builder>
-
addToRoot
Flag that forces the parsed JSON to be added at the top level of the document.target_fieldmust not be set when this option is chosen.API name:
add_to_root -
addToRootConflictStrategy
@Nonnull public final JsonProcessor.Builder addToRootConflictStrategy(@Nullable JsonProcessorConflictStrategy value) API name:add_to_root_conflict_strategy -
allowDuplicateKeys
When set totrue, the JSON parser will not fail if the JSON contains duplicate keys. Instead, the last encountered value for any duplicate key wins.API name:
allow_duplicate_keys -
field
Required - API name:field -
targetField
API name:target_field -
build
Builds aJsonProcessor.- Specified by:
buildin interfaceObjectBuilder<JsonProcessor>- Throws:
NullPointerException- if some of the required fields are null.
-