Class UriPartsProcessor.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch.ingest.ProcessorBase.AbstractBuilder<UriPartsProcessor.Builder>
co.elastic.clients.elasticsearch.ingest.UriPartsProcessor.Builder
- All Implemented Interfaces:
WithJson<UriPartsProcessor.Builder>,ObjectBuilder<UriPartsProcessor>
- Enclosing class:
- UriPartsProcessor
public static class UriPartsProcessor.Builder
extends ProcessorBase.AbstractBuilder<UriPartsProcessor.Builder>
implements ObjectBuilder<UriPartsProcessor>
Builder for
UriPartsProcessor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aUriPartsProcessor.Required - Field containing the URI string.ignoreMissing(Boolean value) Iftrueandfielddoes not exist, the processor quietly exits without modifying the document.keepOriginal(Boolean value) Iftrue, the processor copies the unparsed URI to<target_field>.original.removeIfSuccessful(Boolean value) Iftrue, the processor removes thefieldafter parsing the URI string.protected UriPartsProcessor.Builderself()targetField(String value) Output field for the URI object.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 the URI string.API name:
field -
ignoreMissing
Iftrueandfielddoes not exist, the processor quietly exits without modifying the document.API name:
ignore_missing -
keepOriginal
Iftrue, the processor copies the unparsed URI to<target_field>.original.API name:
keep_original -
removeIfSuccessful
Iftrue, the processor removes thefieldafter parsing the URI string. If parsing fails, the processor does not remove thefield.API name:
remove_if_successful -
targetField
Output field for the URI object.API name:
target_field -
self
- Specified by:
selfin classProcessorBase.AbstractBuilder<UriPartsProcessor.Builder>
-
build
Builds aUriPartsProcessor.- Specified by:
buildin interfaceObjectBuilder<UriPartsProcessor>- Throws:
NullPointerException- if some of the required fields are null.
-