public class CsvReadOptions extends ReadOptions
Modifier and Type | Class and Description |
---|---|
static class |
CsvReadOptions.Builder |
columnTypesToDetect, dateFormat, dateFormatter, dateTimeFormat, dateTimeFormatter, header, locale, maxCharsPerColumn, minimizeColumnSizes, missingValueIndicator, sample, source, tableName, timeFormat, timeFormatter
Modifier and Type | Method and Description |
---|---|
static CsvReadOptions.Builder |
builder(File file) |
static CsvReadOptions.Builder |
builder(InputStream stream)
This method may cause tablesaw to buffer the entire InputStream.
|
static CsvReadOptions.Builder |
builder(Reader reader)
This method may cause tablesaw to buffer the entire InputStream.
|
static CsvReadOptions.Builder |
builder(Source source) |
static CsvReadOptions.Builder |
builder(String fileName) |
static CsvReadOptions.Builder |
builder(URL url) |
static CsvReadOptions.Builder |
builderFromFile(String fileName) |
static CsvReadOptions.Builder |
builderFromString(String contents) |
static CsvReadOptions.Builder |
builderFromUrl(String url) |
ColumnType[] |
columnTypes() |
Character |
commentPrefix() |
String |
lineEnding() |
boolean |
lineSeparatorDetectionEnabled() |
int |
maxCharsPerColumn() |
Integer |
maxNumberOfColumns() |
Character |
quoteChar() |
int |
sampleSize() |
Character |
separator() |
columnTypesToDetect, dateFormatter, dateTimeFormatter, header, locale, minimizeColumnSizes, missingValueIndicator, sample, source, tableName, timeFormatter
public static CsvReadOptions.Builder builder(Source source)
public static CsvReadOptions.Builder builder(File file)
public static CsvReadOptions.Builder builder(String fileName)
public static CsvReadOptions.Builder builder(URL url) throws IOException
IOException
public static CsvReadOptions.Builder builderFromFile(String fileName)
public static CsvReadOptions.Builder builderFromString(String contents)
public static CsvReadOptions.Builder builderFromUrl(String url) throws IOException
IOException
public static CsvReadOptions.Builder builder(InputStream stream)
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
public static CsvReadOptions.Builder builder(Reader reader)
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
public ColumnType[] columnTypes()
public Character separator()
public Character quoteChar()
public String lineEnding()
public boolean lineSeparatorDetectionEnabled()
public Integer maxNumberOfColumns()
public Character commentPrefix()
public int maxCharsPerColumn()
public int sampleSize()
Copyright © 2020. All rights reserved.