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