Class CsvProcessor
java.lang.Object
co.elastic.clients.elasticsearch.ingest.ProcessorBase
co.elastic.clients.elasticsearch.ingest.CsvProcessor
- All Implemented Interfaces:
ProcessorVariant
,JsonpSerializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch.ingest.ProcessorBase
ProcessorBase.AbstractBuilder<BuilderT extends ProcessorBase.AbstractBuilder<BuilderT>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<CsvProcessor>
Json deserializer forCsvProcessor
-
Method Summary
Modifier and TypeMethodDescriptionProcessor variant kind.final JsonData
Value used to fill empty fields.final String
field()
Required - The field to extract data from.final Boolean
Iftrue
andfield
does not exist, the processor quietly exits without modifying the document.static CsvProcessor
final String
quote()
Quote used in CSV, has to be single character string.final String
Separator used in CSV, has to be single character string.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
Required - The array of fields to assign extracted values to.final Boolean
trim()
Trim whitespaces in unquoted fields.Methods inherited from class co.elastic.clients.elasticsearch.ingest.ProcessorBase
description, if_, ignoreFailure, onFailure, serialize, setupProcessorBaseDeserializer, tag, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface co.elastic.clients.elasticsearch.ingest.ProcessorVariant
_toProcessor
-
Field Details
-
_DESERIALIZER
Json deserializer forCsvProcessor
-
-
Method Details
-
of
-
_processorKind
Processor variant kind.- Specified by:
_processorKind
in 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 - The field to extract data from.API name:
field
-
ignoreMissing
Iftrue
andfield
does 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 - The array of fields to assign extracted values to.API name:
target_fields
-
trim
Trim whitespaces in unquoted fields.API name:
trim
-
serializeInternal
- Overrides:
serializeInternal
in classProcessorBase
-
setupCsvProcessorDeserializer
-