public class CsvReadOptions extends ReadOptions
Modifier and Type | Class | Description |
---|---|---|
static class |
CsvReadOptions.Builder |
ReadOptions.ColumnTypeReadOptions
allowDuplicateColumnNames, columnTypeReadOptions, columnTypesToDetect, dateFormat, dateFormatter, dateTimeFormat, dateTimeFormatter, DEFAULT_IGNORE_ZERO_DECIMAL, DEFAULT_SKIP_ROWS_WITH_INVALID_COLUMN_COUNT, EXTENDED_TYPES, header, ignoreZeroDecimal, locale, maxCharsPerColumn, minimizeColumnSizes, missingValueIndicators, sample, skipRowsWithInvalidColumnCount, source, tableName, timeFormat, timeFormatter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
allowDuplicateColumnNames, columnTypeReadOptions, columnTypesToDetect, dateFormatter, dateTimeFormatter, header, ignoreZeroDecimal, locale, minimizeColumnSizes, missingValueIndicators, sample, skipRowsWithInvalidColumnCount, source, tableName, timeFormatter
public static CsvReadOptions.Builder builder(Source source)
public static CsvReadOptions.Builder builder(File file)
public static CsvReadOptions.Builder builder(String fileName)
public static CsvReadOptions.Builder builder(URL url) throws IOException
IOException
public static CsvReadOptions.Builder builderFromFile(String fileName)
public static CsvReadOptions.Builder builderFromString(String contents)
public static CsvReadOptions.Builder builderFromUrl(String url) throws IOException
IOException
public static CsvReadOptions.Builder 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 static CsvReadOptions.Builder 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 static CsvReadOptions.Builder builder(InputStreamReader 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 ColumnType[] columnTypes()
public Character separator()
public Character quoteChar()
public Character escapeChar()
public String lineEnding()
public boolean lineSeparatorDetectionEnabled()
public Integer maxNumberOfColumns()
public Character commentPrefix()
public int maxCharsPerColumn()
public int sampleSize()
Copyright © 2021. All rights reserved.