protected static class ReadOptions.Builder extends Object
Modifier and Type | Field and Description |
---|---|
protected List<ColumnType> |
columnTypesToDetect |
protected String |
dateFormat |
protected DateTimeFormatter |
dateFormatter |
protected String |
dateTimeFormat |
protected DateTimeFormatter |
dateTimeFormatter |
protected boolean |
header |
protected Locale |
locale |
protected int |
maxCharsPerColumn |
protected boolean |
minimizeColumnSizes |
protected String |
missingValueIndicator |
protected boolean |
sample |
protected Source |
source |
protected String |
tableName |
protected String |
timeFormat |
protected DateTimeFormatter |
timeFormatter |
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
protected |
Builder(File file) |
protected |
Builder(InputStream stream) |
protected |
Builder(Reader reader) |
protected |
Builder(Source source) |
protected |
Builder(URL url) |
protected final Source source
protected String tableName
protected List<ColumnType> columnTypesToDetect
protected boolean sample
protected String dateFormat
protected DateTimeFormatter dateFormatter
protected String timeFormat
protected DateTimeFormatter timeFormatter
protected String dateTimeFormat
protected DateTimeFormatter dateTimeFormatter
protected Locale locale
protected String missingValueIndicator
protected boolean minimizeColumnSizes
protected boolean header
protected int maxCharsPerColumn
protected Builder()
protected Builder(Source source)
protected Builder(File file)
protected Builder(URL url) throws IOException
IOException
protected Builder(InputStream stream)
protected Builder(Reader reader)
public ReadOptions.Builder tableName(String tableName)
public ReadOptions.Builder header(boolean hasHeader)
@Deprecated public ReadOptions.Builder dateFormat(String dateFormat)
public ReadOptions.Builder dateFormat(DateTimeFormatter dateFormat)
@Deprecated public ReadOptions.Builder timeFormat(String timeFormat)
public ReadOptions.Builder timeFormat(DateTimeFormatter dateFormat)
@Deprecated public ReadOptions.Builder dateTimeFormat(String dateTimeFormat)
public ReadOptions.Builder dateTimeFormat(DateTimeFormatter dateFormat)
public ReadOptions.Builder missingValueIndicator(String missingValueIndicator)
public ReadOptions.Builder maxCharsPerColumn(int maxCharsPerColumn)
public ReadOptions.Builder sample(boolean sample)
public ReadOptions.Builder locale(Locale locale)
public ReadOptions.Builder columnTypesToDetect(List<ColumnType> columnTypesToDetect)
ColumnTypeDetector
public ReadOptions.Builder minimizeColumnSizes()
ColumnTypeDetector
to choose shorter column types such as float instead of
double when the data will fit in a smaller typepublic ReadOptions build()
Copyright © 2020. All rights reserved.