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, minimizeColumnSizespublic 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 ReadOptionspublic Reader reader()
reader in class ReadOptionspublic InputStream inputStream()
inputStream in class ReadOptionspublic String tableName()
tableName in class ReadOptionspublic ColumnType[] columnTypes()
public Character separator()
public String lineEnding()
public boolean sample()
sample in class ReadOptionspublic String missingValueIndicator()
missingValueIndicator in class ReadOptionspublic Locale locale()
locale in class ReadOptionspublic DateTimeFormatter dateTimeFormatter()
dateTimeFormatter in class ReadOptionspublic DateTimeFormatter timeFormatter()
timeFormatter in class ReadOptionspublic DateTimeFormatter dateFormatter()
dateFormatter in class ReadOptionspublic Integer maxNumberOfColumns()
Copyright © 2019. All rights reserved.