Class CsvReadOptions
- java.lang.Object
-
- tech.tablesaw.io.ReadOptions
-
- tech.tablesaw.io.csv.CsvReadOptions
-
public class CsvReadOptions extends ReadOptions
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CsvReadOptions.Builder
-
Nested classes/interfaces inherited from class tech.tablesaw.io.ReadOptions
ReadOptions.ColumnTypeReadOptions
-
-
Field Summary
-
Fields inherited from class tech.tablesaw.io.ReadOptions
allowDuplicateColumnNames, columnTypeReadOptions, columnTypesToDetect, dateFormat, dateFormatter, dateTimeFormat, dateTimeFormatter, DEFAULT_IGNORE_ZERO_DECIMAL, DEFAULT_SKIP_ROWS_WITH_INVALID_COLUMN_COUNT, EXTENDED_TYPES, header, ignoreZeroDecimal, locale, maxCharsPerColumn, minimizeColumnSizes, missingValueIndicators, sample, skipRowsWithInvalidColumnCount, source, tableName, timeFormat, timeFormatter
-
-
Method Summary
-
Methods inherited from class tech.tablesaw.io.ReadOptions
allowDuplicateColumnNames, columnTypeReadOptions, columnTypesToDetect, dateFormatter, dateTimeFormatter, header, ignoreZeroDecimal, locale, minimizeColumnSizes, missingValueIndicators, sample, skipRowsWithInvalidColumnCount, source, tableName, timeFormatter
-
-
-
-
Method Detail
-
builder
public static CsvReadOptions.Builder builder(Source source)
-
builder
public static CsvReadOptions.Builder builder(File file)
-
builder
public static CsvReadOptions.Builder builder(String fileName)
-
builder
public static CsvReadOptions.Builder builder(URL url) throws IOException
- Throws:
IOException
-
builderFromFile
public static CsvReadOptions.Builder builderFromFile(String fileName)
-
builderFromString
public static CsvReadOptions.Builder builderFromString(String contents)
-
builderFromUrl
public static CsvReadOptions.Builder builderFromUrl(String url) throws IOException
- Throws:
IOException
-
builder
public static CsvReadOptions.Builder builder(InputStream stream)
This method may cause tablesaw to buffer the entire InputStream.If you have a large amount of data, you can do one of the following: 1. Use the method taking a File instead of a stream, or 2. Provide the array of column types as an option. If you provide the columnType array, we skip type detection and can avoid reading the entire file
-
builder
public static CsvReadOptions.Builder builder(Reader reader)
This method may cause tablesaw to buffer the entire InputStream.If you have a large amount of data, you can do one of the following: 1. Use the method taking a File instead of a reader, or 2. Provide the array of column types as an option. If you provide the columnType array, we skip type detection and can avoid reading the entire file
-
builder
public static CsvReadOptions.Builder builder(InputStreamReader reader)
This method may cause tablesaw to buffer the entire InputStream.If you have a large amount of data, you can do one of the following: 1. Use the method taking a File instead of a reader, or 2. Provide the array of column types as an option. If you provide the columnType array, we skip type detection and can avoid reading the entire file
-
columnTypes
public ColumnType[] columnTypes()
-
separator
public Character separator()
-
quoteChar
public Character quoteChar()
-
escapeChar
public Character escapeChar()
-
lineEnding
public String lineEnding()
-
lineSeparatorDetectionEnabled
public boolean lineSeparatorDetectionEnabled()
-
maxNumberOfColumns
public Integer maxNumberOfColumns()
-
commentPrefix
public Character commentPrefix()
-
maxCharsPerColumn
public int maxCharsPerColumn()
-
sampleSize
public int sampleSize()
-
-