CSVOptions#
- public class CSVOptions extends ColumnFilterOptions#
Options for reading a CSV file.
Field Summary
Method Summary
Static Fields
- public static CSVOptions DEFAULT#
- public static class Builder extends ColumnFilterOptions.Builder<Builder>#
Method Summary
Set the row of the header to 0, the first line.
Set the row of the header to 0, the first line, if hasHeader is true else disables the header.
Set the character that starts the beginning of a comment line.
Set the entry deliminator.
Row of the header data (0 based counting).
Set the quote character.
Quote style to expect in the input CSV data.
Methods inherited from class
ai.rapids.cudf.ColumnFilterOptions.Builder:includeColumnMethods
- public Builder withHeaderAtRow(int index)#
Row of the header data (0 based counting).
Negative is no header.
- public Builder hasHeader(boolean hasHeader)#
Set the row of the header to 0, the first line, if hasHeader is true else disables the header.
- public Builder withDelim(char delim)#
Set the entry deliminator.
Only ASCII chars are currently supported.
- public Builder withQuote(char quote)#
Set the quote character.
Only ASCII chars are currently supported.
- public Builder withQuoteStyle(QuoteStyle quoteStyle)#
Quote style to expect in the input CSV data.
Note: Only the following quoting styles are supported:
MINIMAL: String columns containing special characters like row-delimiters/ field-delimiter/quotes will be quoted.
NONE: No quoting is done for any columns.
- public 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.
- public CSVOptions build()#