public abstract class ParserProvider
extends java.lang.Object
Constructor and Description |
---|
ParserProvider() |
Modifier and Type | Method and Description |
---|---|
abstract Parser |
createParser(ParseSetup setup,
Key<Job> jobKey)
Create a new parser
|
abstract ParseSetup |
createParserSetup(Key[] inputs,
ParseSetup requiredSetup)
Create a parser specific setup.
|
abstract ParseSetup |
guessSetup(ByteVec v,
byte[] bits,
byte sep,
int ncols,
boolean singleQuotes,
int checkHeader,
java.lang.String[] columnNames,
byte[] columnTypes,
java.lang.String[][] domains,
java.lang.String[][] naStrings)
Returns parser setup of throws exception if input is not recognized
|
abstract ParserInfo |
info()
Technical information for this parser
|
ParseSetup |
setupLocal(Vec v,
ParseSetup setup)
Executed exactly once per-file-per-node during parse.
|
public abstract ParserInfo info()
public abstract Parser createParser(ParseSetup setup, Key<Job> jobKey)
public abstract ParseSetup guessSetup(ByteVec v, byte[] bits, byte sep, int ncols, boolean singleQuotes, int checkHeader, java.lang.String[] columnNames, byte[] columnTypes, java.lang.String[][] domains, java.lang.String[][] naStrings)
public abstract ParseSetup createParserSetup(Key[] inputs, ParseSetup requiredSetup)
inputs
- input keysrequiredSetup
- user given parser setuppublic ParseSetup setupLocal(Vec v, ParseSetup setup)
v
- setup
-