Package ai.rapids.cudf
Class CSVOptions.Builder
- Enclosing class:
- CSVOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Set the row of the header to 0, the first line.hasHeader
(boolean hasHeader) Set the row of the header to 0, the first line, if hasHeader is true else disables the header.withComment
(char comment) Set the character that starts the beginning of a comment line.withDelim
(char delim) Set the entry deliminator.withFalseValue
(String... fvs) withHeaderAtRow
(int index) Row of the header data (0 based counting).withNullValue
(String... nvs) withQuote
(char quote) Set the quote character.withQuoteStyle
(QuoteStyle quoteStyle) Quote style to expect in the input CSV data.withTrueValue
(String... tvs) Methods inherited from class ai.rapids.cudf.ColumnFilterOptions.Builder
includeColumn, includeColumn
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withHeaderAtRow
Row of the header data (0 based counting). Negative is no header. -
hasHeader
Set the row of the header to 0, the first line, if hasHeader is true else disables the header. -
hasHeader
Set the row of the header to 0, the first line. -
withDelim
Set the entry deliminator. Only ASCII chars are currently supported. -
withQuote
Set the quote character. Only ASCII chars are currently supported. -
withQuoteStyle
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
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
-
withNullValue
-
withTrueValue
-
withFalseValue
-
build
-