public class CsvReadOptions extends ReadOptions
Modifier and Type | Class and Description |
---|---|
static class |
CsvReadOptions.Builder |
dateFormat, dateTimeFormat, EXTENDED_TYPE_ARRAY, file, header, inputStream, locale, minimizeColumnSizes, missingValueIndicator, reader, sample, tableName, timeFormat
Modifier and Type | Method and Description |
---|---|
static CsvReadOptions.Builder |
builder(File file) |
static CsvReadOptions.Builder |
builder(InputStream stream,
String tableName)
This method may cause tablesaw to buffer the entire InputStream.
|
static CsvReadOptions.Builder |
builder(Reader reader,
String tableName)
This method may cause tablesaw to buffer the entire InputStream.
|
static CsvReadOptions.Builder |
builder(String fileName) |
ColumnType[] |
columnTypes() |
DateTimeFormatter |
dateFormatter() |
DateTimeFormatter |
dateTimeFormatter() |
File |
file() |
InputStream |
inputStream() |
String |
lineEnding() |
Locale |
locale() |
Integer |
maxNumberOfColumns() |
String |
missingValueIndicator() |
Reader |
reader() |
boolean |
sample() |
Character |
separator() |
String |
tableName() |
DateTimeFormatter |
timeFormatter() |
header, minimizeColumnSizes
public static CsvReadOptions.Builder builder(File file)
public static CsvReadOptions.Builder builder(String fileName)
public static CsvReadOptions.Builder builder(InputStream stream, String tableName)
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, String tableName)
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 File file()
file
in class ReadOptions
public Reader reader()
reader
in class ReadOptions
public InputStream inputStream()
inputStream
in class ReadOptions
public String tableName()
tableName
in class ReadOptions
public ColumnType[] columnTypes()
public Character separator()
public String lineEnding()
public boolean sample()
sample
in class ReadOptions
public String missingValueIndicator()
missingValueIndicator
in class ReadOptions
public Locale locale()
locale
in class ReadOptions
public DateTimeFormatter dateTimeFormatter()
dateTimeFormatter
in class ReadOptions
public DateTimeFormatter timeFormatter()
timeFormatter
in class ReadOptions
public DateTimeFormatter dateFormatter()
dateFormatter
in class ReadOptions
public Integer maxNumberOfColumns()
Copyright © 2019. All rights reserved.