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, timeFormat
header, minimizeColumnSizes
public 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 ReadOptions
public Reader reader()
reader
in class ReadOptions
public InputStream inputStream()
inputStream
in class ReadOptions
public String tableName()
tableName
in class ReadOptions
public 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 ReadOptions
public String missingValueIndicator()
missingValueIndicator
in class ReadOptions
public Locale locale()
locale
in class ReadOptions
public DateTimeFormatter dateTimeFormatter()
dateTimeFormatter
in class ReadOptions
public DateTimeFormatter timeFormatter()
timeFormatter
in class ReadOptions
public DateTimeFormatter dateFormatter()
dateFormatter
in class ReadOptions
public Integer maxNumberOfColumns()
Copyright © 2019. All rights reserved.