public class FixedWidthReadOptions extends ReadOptions
| Modifier and Type | Class and Description |
|---|---|
static class |
FixedWidthReadOptions.Builder |
dateFormat, dateTimeFormat, EXTENDED_TYPE_ARRAY, file, header, inputStream, locale, minimizeColumnSizes, missingValueIndicator, reader, sample, tableName, timeFormatheader, minimizeColumnSizespublic static FixedWidthReadOptions.Builder builder(File file)
public static FixedWidthReadOptions.Builder builder(String fileName)
public static FixedWidthReadOptions.Builder builder(InputStream stream, String tableName)
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 static FixedWidthReadOptions.Builder builder(Reader reader, String tableName)
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 File file()
file in class ReadOptionspublic Reader reader()
reader in class ReadOptionspublic InputStream inputStream()
inputStream in class ReadOptionspublic String tableName()
tableName in class ReadOptionspublic ColumnType[] columnTypes()
public com.univocity.parsers.fixed.FixedWidthFields columnSpecs()
public String lineEnding()
public char padding()
public char lookupWildcard()
public boolean skipTrailingCharsUntilNewline()
public boolean recordEndsOnNewline()
public boolean skipInvalidRows()
public boolean sample()
sample in class ReadOptionspublic String missingValueIndicator()
missingValueIndicator in class ReadOptionspublic Locale locale()
locale in class ReadOptionspublic DateTimeFormatter dateTimeFormatter()
dateTimeFormatter in class ReadOptionspublic DateTimeFormatter timeFormatter()
timeFormatter in class ReadOptionspublic DateTimeFormatter dateFormatter()
dateFormatter in class ReadOptionspublic Integer maxNumberOfColumns()
Copyright © 2019. All rights reserved.