public class ReadOptions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ReadOptions.Builder |
Modifier and Type | Field and Description |
---|---|
protected String |
dateFormat |
protected String |
dateTimeFormat |
protected File |
file |
protected InputStream |
inputStream |
protected Locale |
locale |
protected String |
missingValueIndicator |
protected Reader |
reader |
protected boolean |
sample |
protected String |
tableName |
protected String |
timeFormat |
Modifier | Constructor and Description |
---|---|
protected |
ReadOptions(ReadOptions.Builder builder) |
Modifier and Type | Method and Description |
---|---|
static ReadOptions.Builder |
builder(File file) |
static ReadOptions.Builder |
builder(InputStream stream,
String tableName)
This method may cause tablesaw to buffer the entire InputStream.
|
static ReadOptions.Builder |
builder(Reader reader,
String tableName)
This method may cause tablesaw to buffer the entire InputStream.
|
static ReadOptions.Builder |
builder(String fileName) |
DateTimeFormatter |
dateFormatter() |
DateTimeFormatter |
dateTimeFormatter() |
File |
file() |
InputStream |
inputStream() |
Locale |
locale() |
String |
missingValueIndicator() |
Reader |
reader() |
boolean |
sample() |
String |
tableName() |
DateTimeFormatter |
timeFormatter() |
protected final File file
protected final Reader reader
protected final InputStream inputStream
protected final String tableName
protected final boolean sample
protected final String dateFormat
protected final String dateTimeFormat
protected final String timeFormat
protected final Locale locale
protected final String missingValueIndicator
protected ReadOptions(ReadOptions.Builder builder)
public static ReadOptions.Builder builder(File file)
public static ReadOptions.Builder builder(String fileName)
public static ReadOptions.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 ReadOptions.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 boolean sample()
public String missingValueIndicator()
public Locale locale()
public DateTimeFormatter dateTimeFormatter()
public DateTimeFormatter timeFormatter()
public DateTimeFormatter dateFormatter()
Copyright © 2019. All rights reserved.