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 |
static List<ColumnType> |
EXTENDED_TYPE_ARRAY
An extended list of types that are used if minimizeColumnSizes is true.
|
protected File |
file |
protected boolean |
header |
protected InputStream |
inputStream |
protected Locale |
locale |
protected boolean |
minimizeColumnSizes |
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() |
boolean |
header() |
InputStream |
inputStream() |
Locale |
locale() |
boolean |
minimizeColumnSizes() |
String |
missingValueIndicator() |
Reader |
reader() |
boolean |
sample() |
String |
tableName() |
DateTimeFormatter |
timeFormatter() |
public static final List<ColumnType> EXTENDED_TYPE_ARRAY
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 final boolean minimizeColumnSizes
protected final boolean header
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 boolean minimizeColumnSizes()
public String missingValueIndicator()
public Locale locale()
public boolean header()
public DateTimeFormatter dateTimeFormatter()
public DateTimeFormatter timeFormatter()
public DateTimeFormatter dateFormatter()
Copyright © 2019. All rights reserved.