Class CsvProcessor

java.lang.Object
co.elastic.clients.elasticsearch.ingest.ProcessorBase
co.elastic.clients.elasticsearch.ingest.CsvProcessor
All Implemented Interfaces:
ProcessorVariant, JsonpSerializable

@JsonpDeserializable public class CsvProcessor extends ProcessorBase implements ProcessorVariant
See Also:
  • Field Details

  • Method Details

    • of

    • _processorKind

      public Processor.Kind _processorKind()
      Processor variant kind.
      Specified by:
      _processorKind in interface ProcessorVariant
    • emptyValue

      @Nullable public final JsonData 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

      public final String field()
      Required - The field to extract data from.

      API name: field

    • ignoreMissing

      @Nullable public final Boolean ignoreMissing()
      If true and field does not exist, the processor quietly exits without modifying the document.

      API name: ignore_missing

    • quote

      @Nullable public final String quote()
      Quote used in CSV, has to be single character string.

      API name: quote

    • separator

      @Nullable public final String separator()
      Separator used in CSV, has to be single character string.

      API name: separator

    • targetFields

      public final List<String> targetFields()
      Required - The array of fields to assign extracted values to.

      API name: target_fields

    • trim

      @Nullable public final Boolean trim()
      Trim whitespaces in unquoted fields.

      API name: trim

    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Overrides:
      serializeInternal in class ProcessorBase
    • setupCsvProcessorDeserializer

      protected static void setupCsvProcessorDeserializer(ObjectDeserializer<CsvProcessor.Builder> op)