Package tech.tablesaw.io
Class ReadOptions
- java.lang.Object
-
- tech.tablesaw.io.ReadOptions
-
- Direct Known Subclasses:
CsvReadOptions
,FixedWidthReadOptions
public class ReadOptions extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
ReadOptions.Builder
static interface
ReadOptions.ColumnTypeReadOptions
Allows user to set column types.
-
Field Summary
Fields Modifier and Type Field Description protected boolean
allowDuplicateColumnNames
protected ReadOptions.ColumnTypeReadOptions
columnTypeReadOptions
protected List<ColumnType>
columnTypesToDetect
protected String
dateFormat
protected DateTimeFormatter
dateFormatter
protected String
dateTimeFormat
protected DateTimeFormatter
dateTimeFormatter
static boolean
DEFAULT_IGNORE_ZERO_DECIMAL
static boolean
DEFAULT_SKIP_ROWS_WITH_INVALID_COLUMN_COUNT
protected static List<ColumnType>
EXTENDED_TYPES
An extended list of types that are used if minimizeColumnSizes is true.protected boolean
header
protected boolean
ignoreZeroDecimal
protected Locale
locale
protected int
maxCharsPerColumn
protected boolean
minimizeColumnSizes
protected String[]
missingValueIndicators
protected boolean
sample
protected boolean
skipRowsWithInvalidColumnCount
protected Source
source
protected String
tableName
protected String
timeFormat
protected DateTimeFormatter
timeFormatter
-
Constructor Summary
Constructors Modifier Constructor Description protected
ReadOptions(ReadOptions.Builder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
allowDuplicateColumnNames()
ReadOptions.ColumnTypeReadOptions
columnTypeReadOptions()
List<ColumnType>
columnTypesToDetect()
DateTimeFormatter
dateFormatter()
DateTimeFormatter
dateTimeFormatter()
boolean
header()
boolean
ignoreZeroDecimal()
Locale
locale()
boolean
minimizeColumnSizes()
String[]
missingValueIndicators()
boolean
sample()
boolean
skipRowsWithInvalidColumnCount()
Source
source()
String
tableName()
DateTimeFormatter
timeFormatter()
-
-
-
Field Detail
-
DEFAULT_IGNORE_ZERO_DECIMAL
public static final boolean DEFAULT_IGNORE_ZERO_DECIMAL
- See Also:
- Constant Field Values
-
DEFAULT_SKIP_ROWS_WITH_INVALID_COLUMN_COUNT
public static final boolean DEFAULT_SKIP_ROWS_WITH_INVALID_COLUMN_COUNT
- See Also:
- Constant Field Values
-
EXTENDED_TYPES
protected static final List<ColumnType> EXTENDED_TYPES
An extended list of types that are used if minimizeColumnSizes is true. By including extra types like Short the resulting table size is reduced at the cost of some additional complexity for the programmer if, for example, they will subsequently modify the data in a way that exceeds the range of the type.
-
source
protected final Source source
-
tableName
protected final String tableName
-
columnTypesToDetect
protected final List<ColumnType> columnTypesToDetect
-
sample
protected final boolean sample
-
dateFormat
protected final String dateFormat
-
dateTimeFormat
protected final String dateTimeFormat
-
timeFormat
protected final String timeFormat
-
locale
protected final Locale locale
-
missingValueIndicators
protected final String[] missingValueIndicators
-
minimizeColumnSizes
protected final boolean minimizeColumnSizes
-
maxCharsPerColumn
protected final int maxCharsPerColumn
-
ignoreZeroDecimal
protected final boolean ignoreZeroDecimal
-
allowDuplicateColumnNames
protected final boolean allowDuplicateColumnNames
-
skipRowsWithInvalidColumnCount
protected final boolean skipRowsWithInvalidColumnCount
-
dateFormatter
protected final DateTimeFormatter dateFormatter
-
dateTimeFormatter
protected final DateTimeFormatter dateTimeFormatter
-
timeFormatter
protected final DateTimeFormatter timeFormatter
-
columnTypeReadOptions
protected final ReadOptions.ColumnTypeReadOptions columnTypeReadOptions
-
header
protected final boolean header
-
-
Constructor Detail
-
ReadOptions
protected ReadOptions(ReadOptions.Builder builder)
-
-
Method Detail
-
source
public Source source()
-
tableName
public String tableName()
-
allowDuplicateColumnNames
public boolean allowDuplicateColumnNames()
-
columnTypesToDetect
public List<ColumnType> columnTypesToDetect()
-
sample
public boolean sample()
-
minimizeColumnSizes
public boolean minimizeColumnSizes()
-
missingValueIndicators
public String[] missingValueIndicators()
-
locale
public Locale locale()
-
header
public boolean header()
-
ignoreZeroDecimal
public boolean ignoreZeroDecimal()
-
skipRowsWithInvalidColumnCount
public boolean skipRowsWithInvalidColumnCount()
-
dateTimeFormatter
public DateTimeFormatter dateTimeFormatter()
-
timeFormatter
public DateTimeFormatter timeFormatter()
-
dateFormatter
public DateTimeFormatter dateFormatter()
-
columnTypeReadOptions
public ReadOptions.ColumnTypeReadOptions columnTypeReadOptions()
-
-