public class CsvParser extends CustomParser
CustomParser.CustomInspectDataOut, CustomParser.DataIn, CustomParser.DataOut, CustomParser.ParserSetup, CustomParser.ParserType, CustomParser.PSetupGuess, CustomParser.StreamData, CustomParser.StreamDataOut
Modifier and Type | Field and Description |
---|---|
static byte |
AUTO_SEP |
byte |
CHAR_DECIMAL_SEPARATOR |
byte |
CHAR_SEPARATOR |
static byte |
HIVE_SEP |
_setup, CHAR_COMMA, CHAR_CR, CHAR_DOUBLE_QUOTE, CHAR_FF, CHAR_LF, CHAR_NULL, CHAR_SINGLE_QUOTE, CHAR_SPACE, CHAR_TAB, CHAR_VT, MAX_PREVIEW_COLS, MAX_PREVIEW_LINES
Constructor and Description |
---|
CsvParser(CustomParser.ParserSetup setup) |
Modifier and Type | Method and Description |
---|---|
CsvParser |
clone() |
static CustomParser.PSetupGuess |
guessSetup(byte[] bits)
Determines the CSV parser setup from the first two lines.
|
static CustomParser.PSetupGuess |
guessSetup(byte[] bits,
CustomParser.ParserSetup setup) |
static CustomParser.PSetupGuess |
guessSetup(byte[] bits,
CustomParser.ParserSetup setup,
boolean checkHeader) |
boolean |
isCompatible(CustomParser p) |
CustomParser.DataOut |
parallelParse(int cidx,
CustomParser.DataIn din,
CustomParser.DataOut dout) |
boolean |
parallelParseSupported() |
headers, isEOL, isWhitespace, streamParse, streamParse
frozenType, init, newInstance, read, toDocField, write, writeJSON, writeJSONFields
public static final byte AUTO_SEP
public final byte CHAR_DECIMAL_SEPARATOR
public final byte CHAR_SEPARATOR
public static final byte HIVE_SEP
public CsvParser(CustomParser.ParserSetup setup)
public CsvParser clone()
clone
in class CustomParser
public boolean parallelParseSupported()
parallelParseSupported
in class CustomParser
public final CustomParser.DataOut parallelParse(int cidx, CustomParser.DataIn din, CustomParser.DataOut dout)
parallelParse
in class CustomParser
public static CustomParser.PSetupGuess guessSetup(byte[] bits)
public static CustomParser.PSetupGuess guessSetup(byte[] bits, CustomParser.ParserSetup setup)
public static CustomParser.PSetupGuess guessSetup(byte[] bits, CustomParser.ParserSetup setup, boolean checkHeader)
public boolean isCompatible(CustomParser p)
isCompatible
in class CustomParser