public class CsvReadOptions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CsvReadOptions.Builder |
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() |
boolean |
header() |
InputStream |
inputStream() |
String |
lineEnding() |
Locale |
locale() |
Integer |
maxNumberOfColumns() |
String |
missingValueIndicator() |
Reader |
reader() |
boolean |
sample() |
Character |
separator() |
String |
tableName() |
DateTimeFormatter |
timeFormatter() |
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()
public Reader reader()
public InputStream inputStream()
public String tableName()
public ColumnType[] columnTypes()
public boolean header()
public Character separator()
public String lineEnding()
public boolean sample()
public String missingValueIndicator()
public Locale locale()
public DateTimeFormatter dateTimeFormatter()
public DateTimeFormatter timeFormatter()
public DateTimeFormatter dateFormatter()
public Integer maxNumberOfColumns()
Copyright © 2018. All rights reserved.