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 ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch.ingest.ProcessorBase
ProcessorBase.AbstractBuilder<BuilderT extends ProcessorBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<CsvProcessor>Json deserializer forCsvProcessor -
Method Summary
Modifier and TypeMethodDescriptionProcessor variant kind.final JsonDataValue used to fill empty fields.final Stringfield()Required - The field to extract data from.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 - The array of fields to assign extracted values to.final Booleantrim()Trim whitespaces in unquoted fields.Methods inherited from class co.elastic.clients.elasticsearch.ingest.ProcessorBase
description, if_, ignoreFailure, onFailure, serialize, setupProcessorBaseDeserializer, tag, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
_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 - The field to extract data from.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 - The array of fields to assign extracted values to.API name:
target_fields -
trim
Trim whitespaces in unquoted fields.API name:
trim -
serializeInternal
- Overrides:
serializeInternalin classProcessorBase
-
setupCsvProcessorDeserializer
-