Class CSVOptions.Builder

Enclosing class:
CSVOptions

public static class CSVOptions.Builder extends ColumnFilterOptions.Builder<CSVOptions.Builder>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • withHeaderAtRow

      public CSVOptions.Builder withHeaderAtRow(int index)
      Row of the header data (0 based counting). Negative is no header.
    • hasHeader

      public CSVOptions.Builder hasHeader(boolean hasHeader)
      Set the row of the header to 0, the first line, if hasHeader is true else disables the header.
    • hasHeader

      public CSVOptions.Builder hasHeader()
      Set the row of the header to 0, the first line.
    • withDelim

      public CSVOptions.Builder withDelim(char delim)
      Set the entry deliminator. Only ASCII chars are currently supported.
    • withQuote

      public CSVOptions.Builder withQuote(char quote)
      Set the quote character. Only ASCII chars are currently supported.
    • withQuoteStyle

      public CSVOptions.Builder withQuoteStyle(QuoteStyle quoteStyle)
      Quote style to expect in the input CSV data. Note: Only the following quoting styles are supported: 1. MINIMAL: String columns containing special characters like row-delimiters/ field-delimiter/quotes will be quoted. 2. NONE: No quoting is done for any columns.
    • withComment

      public CSVOptions.Builder withComment(char comment)
      Set the character that starts the beginning of a comment line. setting to 0 or '\0' will disable comments. The default is to have no comments.
    • withoutComments

      public CSVOptions.Builder withoutComments()
    • withNullValue

      public CSVOptions.Builder withNullValue(String... nvs)
    • withTrueValue

      public CSVOptions.Builder withTrueValue(String... tvs)
    • withFalseValue

      public CSVOptions.Builder withFalseValue(String... fvs)
    • build

      public CSVOptions build()