Search Results for

    Show / Hide Table of Contents

    Class CsvProcessor

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

    Inheritance
    object
    ProcessorBase
    CsvProcessor
    Implements
    ICsvProcessor
    IProcessor
    Inherited Members
    ProcessorBase.If
    ProcessorBase.Tag
    ProcessorBase.IgnoreFailure
    ProcessorBase.OnFailure
    ProcessorBase.Description
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: OpenSearch.Client
    Assembly: OpenSearch.Client.dll
    Syntax
    public class CsvProcessor : ProcessorBase, 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
    public object EmptyValue { get; set; }
    Property Value
    Type Description
    object
    | Edit this page View Source

    Field

    The field to extract data from

    Declaration
    public 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
    public bool? IgnoreMissing { get; set; }
    Property Value
    Type Description
    bool?
    | Edit this page View Source

    Name

    Declaration
    protected override string Name { get; }
    Property Value
    Type Description
    string
    Overrides
    ProcessorBase.Name
    | Edit this page View Source

    Quote

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

    Declaration
    public 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
    public 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
    public Fields TargetFields { get; set; }
    Property Value
    Type Description
    Fields
    | Edit this page View Source

    Trim

    Trim whitespaces in unquoted fields. Default is false;

    Declaration
    public bool? Trim { get; set; }
    Property Value
    Type Description
    bool?

    Implements

    ICsvProcessor
    IProcessor

    Extension Methods

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