Class CsvReader

java.lang.Object
org.apache.orc.tools.convert.CsvReader
All Implemented Interfaces:
Closeable, AutoCloseable, RecordReader

public class CsvReader extends Object implements RecordReader
  • Constructor Details

    • CsvReader

      public CsvReader(Reader reader, FSDataInputStream input, long size, TypeDescription schema, char separatorChar, char quoteChar, char escapeChar, int headerLines, String nullString, String timestampFormat)
      Create a CSV reader
      Parameters:
      reader - the stream to read from
      input - the underlying file that is only used for getting the position within the file
      size - the number of bytes in the underlying stream
      schema - the schema to read into
      separatorChar - the character between fields
      quoteChar - the quote character
      escapeChar - the escape character
      headerLines - the number of header lines
      nullString - the string that is translated to null
      timestampFormat - the timestamp format string
  • Method Details