Class CsvProcessor.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ingest.ProcessorBase.AbstractBuilder<CsvProcessor.Builder>
org.opensearch.client.opensearch.ingest.CsvProcessor.Builder
- All Implemented Interfaces:
CopyableBuilder<CsvProcessor.Builder,,CsvProcessor> MutableBuilder<CsvProcessor.Builder,,CsvProcessor> ObjectBuilder<CsvProcessor>
- Enclosing class:
CsvProcessor
public static class CsvProcessor.Builder
extends ProcessorBase.AbstractBuilder<CsvProcessor.Builder>
implements CopyableBuilder<CsvProcessor.Builder,CsvProcessor>
Builder for
CsvProcessor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aCsvProcessor.copy()Create a new builderCopyableBuilderthat is a copy of this one.final CsvProcessor.BuilderemptyValue(JsonData value) Value used to fill empty fields.final CsvProcessor.BuilderRequired - API name:fieldfinal CsvProcessor.BuilderignoreMissing(Boolean value) Iftrueandfielddoes not exist, the processor quietly exits without modifying the document.final CsvProcessor.BuilderQuote used in CSV, has to be single character string.protected CsvProcessor.Builderself()final CsvProcessor.BuilderSeparator used in CSV, has to be single character string.final CsvProcessor.BuildertargetFields(String value, String... values) Required - API name:target_fieldsfinal CsvProcessor.BuildertargetFields(List<String> list) Required - API name:target_fieldsfinal CsvProcessor.BuilderTrim white spaces in unquoted fields.Methods 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<CsvProcessor.Builder,CsvProcessor> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classProcessorBase.AbstractBuilder<CsvProcessor.Builder>
-
emptyValue
Value used to fill empty fields. Empty fields are skipped if this is not provided. An empty field is one with no value (2 consecutive separators) or empty quotes ("").API name:
empty_value -
field
Required - API name:field -
ignoreMissing
Iftrueandfielddoes not exist, the processor quietly exits without modifying the document.API name:
ignore_missing -
quote
Quote used in CSV, has to be single character string.API name:
quote -
separator
Separator used in CSV, has to be single character string.API name:
separator -
targetFields
Required - API name:target_fieldsAdds all elements of
listtotargetFields. -
targetFields
Required - API name:target_fieldsAdds one or more values to
targetFields. -
trim
Trim white spaces in unquoted fields.API name:
trim -
build
Builds aCsvProcessor.- Specified by:
buildin interfaceObjectBuilder<CsvProcessor>- Throws:
NullPointerException- if some of the required fields are null.
-