public static class FixedWidthReadOptions.Builder extends ReadOptions.Builder
dateFormat, dateTimeFormat, file, inputStream, locale, minimizeColumnSizes, missingValueIndicator, reader, sample, tableName, 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.
|
dateFormat, dateTimeFormat, timeFormat
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 FixedWidthReadOptions.Builder tableName(String tableName)
tableName
in class ReadOptions.Builder
public FixedWidthReadOptions.Builder header(boolean header)
header
in class ReadOptions.Builder
public FixedWidthReadOptions.Builder missingValueIndicator(String missingValueIndicator)
missingValueIndicator
in class ReadOptions.Builder
public FixedWidthReadOptions.Builder columnSpecs(com.univocity.parsers.fixed.FixedWidthFields columnSpecs)
public FixedWidthReadOptions.Builder lineEnding(String lineEnding)
public FixedWidthReadOptions.Builder padding(char padding)
public FixedWidthReadOptions.Builder lookupWildcard(char lookupWildcard)
public FixedWidthReadOptions.Builder skipTrailingCharsUntilNewline(boolean skipTrailingCharsUntilNewline)
public FixedWidthReadOptions.Builder recordEndsOnNewline(boolean recordEndsOnNewline)
public FixedWidthReadOptions.Builder skipInvalidRows(boolean skipInvalidRows)
public FixedWidthReadOptions.Builder sample(boolean sample)
sample
in class ReadOptions.Builder
public FixedWidthReadOptions.Builder locale(Locale locale)
locale
in class ReadOptions.Builder
public FixedWidthReadOptions.Builder columnTypes(ColumnType[] columnTypes)
public FixedWidthReadOptions.Builder minimizeColumnSizes(boolean minimize)
minimizeColumnSizes
in class ReadOptions.Builder
public FixedWidthReadOptions.Builder maxNumberOfColumns(Integer maxNumberOfColumns)
maxNumberOfColumns
- - must be positive integer. Default is 512. *public FixedWidthReadOptions build()
build
in class ReadOptions.Builder
Copyright © 2019. All rights reserved.