Search Results for

    Show / Hide Table of Contents

    Interface ICsvProcessor

    Extracts fields from CSV line out of a single text field within a document. Any empty field in CSV will be skipped.

    Inherited Members
    IProcessor.Name
    IProcessor.Description
    IProcessor.OnFailure
    IProcessor.If
    IProcessor.Tag
    IProcessor.IgnoreFailure
    Namespace: OpenSearch.Client
    Assembly: OpenSearch.Client.dll
    Syntax
    public interface ICsvProcessor : IProcessor

    Properties

    | Edit this page View Source

    EmptyValue

    Value used to fill empty fields, empty fields will be skipped if this is not provided. Empty field is one with no value (2 consecutive separators) or empty quotes ("")

    Declaration
    [DataMember(Name = "empty_value")]
    object EmptyValue { get; set; }
    Property Value
    Type Description
    object
    | Edit this page View Source

    Field

    The field to extract data from

    Declaration
    [DataMember(Name = "field")]
    Field Field { get; set; }
    Property Value
    Type Description
    Field
    | Edit this page View Source

    IgnoreMissing

    If true and Field does not exist or is null, the processor quietly exits without modifying the document. Default is false

    Declaration
    [DataMember(Name = "ignore_missing")]
    bool? IgnoreMissing { get; set; }
    Property Value
    Type Description
    bool?
    | Edit this page View Source

    Quote

    Quote used in CSV, has to be single character string. Defaults to "

    Declaration
    [DataMember(Name = "quote")]
    string Quote { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Separator

    Separator used in CSV, has to be single character string. Defaults to ,

    Declaration
    [DataMember(Name = "separator")]
    string Separator { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    TargetFields

    The array of fields to assign extracted values to.

    Declaration
    [DataMember(Name = "target_fields")]
    Fields TargetFields { get; set; }
    Property Value
    Type Description
    Fields
    | Edit this page View Source

    Trim

    Trim whitespaces in unquoted fields. Default is false;

    Declaration
    [DataMember(Name = "trim")]
    bool? Trim { get; set; }
    Property Value
    Type Description
    bool?

    Extension Methods

    SuffixExtensions.Suffix(object, string)
    • Edit this page
    • View Source
    In this article
    • Properties
      • EmptyValue
      • Field
      • IgnoreMissing
      • Quote
      • Separator
      • TargetFields
      • Trim
    • Extension Methods
    Back to top Generated by DocFX