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 classReadOptions.Builderstatic interfaceReadOptions.ColumnTypeReadOptionsAllows user to set column types.
-
Field Summary
Fields Modifier and Type Field Description protected booleanallowDuplicateColumnNamesprotected ReadOptions.ColumnTypeReadOptionscolumnTypeReadOptionsprotected List<ColumnType>columnTypesToDetectprotected StringdateFormatprotected DateTimeFormatterdateFormatterprotected StringdateTimeFormatprotected DateTimeFormatterdateTimeFormatterstatic booleanDEFAULT_IGNORE_ZERO_DECIMALstatic booleanDEFAULT_SKIP_ROWS_WITH_INVALID_COLUMN_COUNTprotected static List<ColumnType>EXTENDED_TYPESAn extended list of types that are used if minimizeColumnSizes is true.protected booleanheaderprotected booleanignoreZeroDecimalprotected Localelocaleprotected intmaxCharsPerColumnprotected booleanminimizeColumnSizesprotected String[]missingValueIndicatorsprotected booleansampleprotected booleanskipRowsWithInvalidColumnCountprotected Sourcesourceprotected StringtableNameprotected StringtimeFormatprotected DateTimeFormattertimeFormatter
-
Constructor Summary
Constructors Modifier Constructor Description protectedReadOptions(ReadOptions.Builder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallowDuplicateColumnNames()ReadOptions.ColumnTypeReadOptionscolumnTypeReadOptions()List<ColumnType>columnTypesToDetect()DateTimeFormatterdateFormatter()DateTimeFormatterdateTimeFormatter()booleanheader()booleanignoreZeroDecimal()Localelocale()booleanminimizeColumnSizes()String[]missingValueIndicators()booleansample()booleanskipRowsWithInvalidColumnCount()Sourcesource()StringtableName()DateTimeFormattertimeFormatter()
-
-
-
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()
-
-