public class ReadCsvConfig extends Object
| Constructor and Description |
|---|
ReadCsvConfig(List<ColumnType<?>> columnTypes)
Constructor for specifying the column types settings.
|
ReadCsvConfig(List<ColumnType<?>> columnTypes,
char delim)
Constructor for specifying the column types and delimiter settings.
|
ReadCsvConfig(List<ColumnType<?>> columnTypes,
List<String> columnNames)
Constructor for specifying the column types and and column names settings.
|
ReadCsvConfig(List<ColumnType<?>> columnTypes,
List<String> columnNames,
char delim)
Constructor for specifying all three configurable settings.
|
public ReadCsvConfig(List<ColumnType<?>> columnTypes, List<String> columnNames, char delim)
columnTypes - - mandatory column types. The size of
this list must match the number of fields in the CSV file.columnNames - - must be specified if and only if a header line is not
present in the CSV file.delim - - any ASCII character which is not a letter, digit, double
quote, CR, or LF.public ReadCsvConfig(List<ColumnType<?>> columnTypes, char delim)
The CSV file must contain a header line since no column names are provided.
columnTypes - - mandatory column types. The size of
this list must match the number of fields in the CSV file.delim - - any ASCII character which is not a letter, digit, double
quote, CR, or LF.public ReadCsvConfig(List<ColumnType<?>> columnTypes, List<String> columnNames)
The delimiter will default to comma.
columnTypes - - mandatory column types. The size of
this list must match the number of fields in the CSV file.columnNames - - must be specified if and only if a header line is not
present in the CSV file.public ReadCsvConfig(List<ColumnType<?>> columnTypes)
The CSV file must contain a header line since no column names are provided. The delimiter will default to comma.
columnTypes - - mandatory column types. The size of
this list must match the number of fields in the CSV file.Copyright © 2020. All rights reserved.