Class CsvProcessor
java.lang.Object
org.opensearch.client.opensearch.ingest.ProcessorBase
org.opensearch.client.opensearch.ingest.CsvProcessor
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ProcessorVariant,ToCopyableBuilder<CsvProcessor.Builder,CsvProcessor>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class CsvProcessor
extends ProcessorBase
implements ProcessorVariant, ToCopyableBuilder<CsvProcessor.Builder,CsvProcessor>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch.ingest.ProcessorBase
ProcessorBase.AbstractBuilder<BuilderT extends ProcessorBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<CsvProcessor> Json deserializer forCsvProcessor -
Method Summary
Modifier and TypeMethodDescriptionProcessorvariant kind.static CsvProcessor.Builderbuilder()final JsonDataValue used to fill empty fields.booleanfinal Stringfield()Required - API name:fieldinthashCode()final BooleanIftrueandfielddoes not exist, the processor quietly exits without modifying the document.static CsvProcessorfinal Stringquote()Quote used in CSV, has to be single character string.final StringSeparator used in CSV, has to be single character string.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidRequired - API name:target_fieldsCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.final Booleantrim()Trim white spaces in unquoted fields.Methods inherited from class org.opensearch.client.opensearch.ingest.ProcessorBase
description, if_, ignoreFailure, onFailure, serialize, setupProcessorBaseDeserializer, tagMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.opensearch.ingest.ProcessorVariant
toProcessorMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forCsvProcessor
-
-
Method Details
-
of
-
_processorKind
Processorvariant kind.- Specified by:
_processorKindin interfaceProcessorVariant
-
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_fields -
trim
Trim white spaces in unquoted fields.API name:
trim -
serializeInternal
- Overrides:
serializeInternalin classProcessorBase
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<CsvProcessor.Builder,CsvProcessor> - Returns:
- a new builder instance.
-
builder
-
setupCsvProcessorDeserializer
-
hashCode
public int hashCode()- Overrides:
hashCodein classProcessorBase
-
equals
- Overrides:
equalsin classProcessorBase
-