public class GruntParser
extends org.apache.pig.tools.pigscript.parser.PigScriptParser
Modifier and Type | Class and Description |
---|---|
protected static class |
GruntParser.ExplainState |
static class |
GruntParser.StreamPrinter
StreamPrinter.
|
jj_nt, mConsoleReader, mInteractive, token, token_source
ALIASES, AS, BAG_CONSTANT, BRIEF, CAT, CD, CLEAR, COPY, COPYFROMLOCAL, COPYTOLOCAL, DECLARE, DEFAULT, DESCRIBE, DESCRIBE_SHORT, DIGIT, DOT, DUMP, DUMP_SHORT, EOF, EOL, EXEC, EXPLAIN, EXPLAIN_SHORT, FLOAT, FS, FSSPECIALCHAR, GENERATE, HELP, HISTORY, IDENTIFIER, ILLUSTRATE, ILLUSTRATE_SHORT, IN_BLOCK, IN_COMMAND, IN_DOUBLE_QUOTED_STRING, IN_STRING, INTEGER, KILL, LETTER, LS, MKDIR, MOVE, MULTI_LINE_COMMENT, N, NUMBER, OUT, PARAM, PARAM_FILE, PATH, PIG, PIG_END, PIG_START, PIGDEFAULT, PREVREL, PWD, QUIT, QUIT_SHORT, QUOTE, QUOTEDSTRING, REGISTER, REMOVE, REMOVEFORCE, RUN, SCHEMA_DEFINITION, SCRIPT, SCRIPT_DONE, SEMICOLON, SET, SH, SHELLCMD, SINGLE_LINE_COMMENT, SPECIALCHAR, SQL, SQL_END, SQL_START, tokenImage, USING, XML
Constructor and Description |
---|
GruntParser(java.io.InputStream stream) |
GruntParser(java.io.InputStream stream,
PigServer pigServer) |
GruntParser(java.io.InputStream stream,
java.lang.String encoding) |
GruntParser(java.io.InputStream stream,
java.lang.String encoding,
PigServer pigServer) |
GruntParser(org.apache.pig.tools.pigscript.parser.PigScriptParserTokenManager tm) |
GruntParser(org.apache.pig.tools.pigscript.parser.PigScriptParserTokenManager tm,
PigServer pigServer) |
GruntParser(java.io.Reader reader) |
GruntParser(java.io.Reader reader,
PigServer pigServer) |
Modifier and Type | Method and Description |
---|---|
protected void |
explainCurrentBatch() |
protected void |
explainCurrentBatch(boolean dontPrintOutput) |
boolean |
isDone() |
void |
parseOnly() |
int[] |
parseStopOnError() |
int[] |
parseStopOnError(boolean sameBatch)
Parses Pig commands in either interactive mode or batch mode.
|
protected void |
printAliases() |
protected void |
printClear() |
protected void |
printHelp() |
protected void |
processCat(java.lang.String path) |
protected void |
processCD(java.lang.String path) |
protected void |
processCopy(java.lang.String src,
java.lang.String dst) |
protected void |
processCopyFromLocal(java.lang.String src,
java.lang.String dst) |
protected void |
processCopyToLocal(java.lang.String src,
java.lang.String dst) |
protected void |
processDeclare(java.lang.String key,
java.lang.String value) |
protected void |
processDefault(java.lang.String key,
java.lang.String value) |
protected void |
processDescribe(java.lang.String alias) |
protected void |
processDump(java.lang.String alias) |
protected void |
processExplain(java.lang.String alias,
java.lang.String script,
boolean isVerbose,
java.lang.String format,
java.lang.String target,
java.util.List<java.lang.String> params,
java.util.List<java.lang.String> files) |
protected void |
processExplain(java.lang.String alias,
java.lang.String script,
boolean isVerbose,
java.lang.String format,
java.lang.String target,
java.util.List<java.lang.String> params,
java.util.List<java.lang.String> files,
boolean dontPrintOutput) |
protected void |
processFsCommand(java.lang.String[] cmdTokens) |
protected void |
processHistory(boolean withNumbers) |
protected void |
processIllustrate(java.lang.String alias,
java.lang.String script,
java.lang.String target,
java.util.List<java.lang.String> params,
java.util.List<java.lang.String> files) |
protected void |
processKill(java.lang.String jobid) |
protected void |
processLS(java.lang.String path) |
protected void |
processMkdir(java.lang.String dir) |
protected void |
processMove(java.lang.String src,
java.lang.String dst) |
protected void |
processPig(java.lang.String cmd) |
protected void |
processPWD() |
protected void |
processRegister(java.lang.String jar) |
protected void |
processRegister(java.lang.String path,
java.lang.String scriptingLang,
java.lang.String namespace) |
protected void |
processRemove(java.lang.String path,
java.lang.String options) |
protected void |
processScript(java.lang.String script,
boolean batch,
java.util.List<java.lang.String> params,
java.util.List<java.lang.String> files) |
protected void |
processSet() |
protected void |
processSet(java.lang.String key,
java.lang.String value) |
protected void |
processShCommand(java.lang.String[] cmdTokens) |
protected void |
processSQLCommand(java.lang.String cmd) |
void |
prompt() |
protected void |
quit() |
static int |
runSQLCommand(java.lang.String hcatBin,
java.lang.String cmd,
boolean mInteractive) |
protected void |
setExplainState(GruntParser.ExplainState explainState) |
void |
setInteractive(boolean isInteractive) |
void |
setLoadOnly(boolean loadOnly) |
void |
setScriptIllustrate() |
void |
setValidateEachStatement(boolean b) |
Clear, disable_tracing, enable_tracing, Explain, generateParseException, GetDefaultValue, GetKey, getLineNumber, getNextToken, GetPath, GetReserved, getToken, GetValue, GetValueOrNull, History, Illustrate, parse, ReInit, ReInit, ReInit, ReInit, Script, setConsoleReader
public GruntParser(java.io.Reader reader)
public GruntParser(java.io.Reader reader, PigServer pigServer)
public GruntParser(java.io.InputStream stream, java.lang.String encoding)
public GruntParser(java.io.InputStream stream, java.lang.String encoding, PigServer pigServer)
public GruntParser(java.io.InputStream stream)
public GruntParser(java.io.InputStream stream, PigServer pigServer)
public GruntParser(org.apache.pig.tools.pigscript.parser.PigScriptParserTokenManager tm)
public GruntParser(org.apache.pig.tools.pigscript.parser.PigScriptParserTokenManager tm, PigServer pigServer)
public void setInteractive(boolean isInteractive)
setInteractive
in class org.apache.pig.tools.pigscript.parser.PigScriptParser
public void setValidateEachStatement(boolean b)
public int[] parseStopOnError() throws java.io.IOException, org.apache.pig.tools.pigscript.parser.ParseException
java.io.IOException
org.apache.pig.tools.pigscript.parser.ParseException
public int[] parseStopOnError(boolean sameBatch) throws java.io.IOException, org.apache.pig.tools.pigscript.parser.ParseException
IOException,
- ParseExceptionjava.io.IOException
org.apache.pig.tools.pigscript.parser.ParseException
public void setLoadOnly(boolean loadOnly)
public void setScriptIllustrate()
public void prompt()
prompt
in class org.apache.pig.tools.pigscript.parser.PigScriptParser
protected void quit()
quit
in class org.apache.pig.tools.pigscript.parser.PigScriptParser
public boolean isDone()
public void parseOnly() throws java.io.IOException, org.apache.pig.tools.pigscript.parser.ParseException
java.io.IOException
org.apache.pig.tools.pigscript.parser.ParseException
protected void processDescribe(java.lang.String alias) throws java.io.IOException
processDescribe
in class org.apache.pig.tools.pigscript.parser.PigScriptParser
java.io.IOException
protected void processExplain(java.lang.String alias, java.lang.String script, boolean isVerbose, java.lang.String format, java.lang.String target, java.util.List<java.lang.String> params, java.util.List<java.lang.String> files) throws java.io.IOException, org.apache.pig.tools.pigscript.parser.ParseException
processExplain
in class org.apache.pig.tools.pigscript.parser.PigScriptParser
java.io.IOException
org.apache.pig.tools.pigscript.parser.ParseException
protected void processExplain(java.lang.String alias, java.lang.String script, boolean isVerbose, java.lang.String format, java.lang.String target, java.util.List<java.lang.String> params, java.util.List<java.lang.String> files, boolean dontPrintOutput) throws java.io.IOException, org.apache.pig.tools.pigscript.parser.ParseException
java.io.IOException
org.apache.pig.tools.pigscript.parser.ParseException
protected void explainCurrentBatch() throws java.io.IOException
java.io.IOException
protected void explainCurrentBatch(boolean dontPrintOutput) throws java.io.IOException
java.io.IOException
protected void printAliases() throws java.io.IOException
printAliases
in class org.apache.pig.tools.pigscript.parser.PigScriptParser
java.io.IOException
protected void printClear()
printClear
in class org.apache.pig.tools.pigscript.parser.PigScriptParser
protected void processRegister(java.lang.String jar) throws java.io.IOException
processRegister
in class org.apache.pig.tools.pigscript.parser.PigScriptParser
java.io.IOException
protected void processRegister(java.lang.String path, java.lang.String scriptingLang, java.lang.String namespace) throws java.io.IOException, org.apache.pig.tools.pigscript.parser.ParseException
processRegister
in class org.apache.pig.tools.pigscript.parser.PigScriptParser
java.io.IOException
org.apache.pig.tools.pigscript.parser.ParseException
protected void processScript(java.lang.String script, boolean batch, java.util.List<java.lang.String> params, java.util.List<java.lang.String> files) throws java.io.IOException, org.apache.pig.tools.pigscript.parser.ParseException
processScript
in class org.apache.pig.tools.pigscript.parser.PigScriptParser
java.io.IOException
org.apache.pig.tools.pigscript.parser.ParseException
protected void processSet(java.lang.String key, java.lang.String value) throws java.io.IOException, org.apache.pig.tools.pigscript.parser.ParseException
processSet
in class org.apache.pig.tools.pigscript.parser.PigScriptParser
java.io.IOException
org.apache.pig.tools.pigscript.parser.ParseException
protected void processSet() throws java.io.IOException, org.apache.pig.tools.pigscript.parser.ParseException
processSet
in class org.apache.pig.tools.pigscript.parser.PigScriptParser
java.io.IOException
org.apache.pig.tools.pigscript.parser.ParseException
protected void processCat(java.lang.String path) throws java.io.IOException
processCat
in class org.apache.pig.tools.pigscript.parser.PigScriptParser
java.io.IOException
protected void processCD(java.lang.String path) throws java.io.IOException
processCD
in class org.apache.pig.tools.pigscript.parser.PigScriptParser
java.io.IOException
protected void processDump(java.lang.String alias) throws java.io.IOException
processDump
in class org.apache.pig.tools.pigscript.parser.PigScriptParser
java.io.IOException
protected void processIllustrate(java.lang.String alias, java.lang.String script, java.lang.String target, java.util.List<java.lang.String> params, java.util.List<java.lang.String> files) throws java.io.IOException, org.apache.pig.tools.pigscript.parser.ParseException
processIllustrate
in class org.apache.pig.tools.pigscript.parser.PigScriptParser
java.io.IOException
org.apache.pig.tools.pigscript.parser.ParseException
protected void processKill(java.lang.String jobid) throws java.io.IOException
processKill
in class org.apache.pig.tools.pigscript.parser.PigScriptParser
java.io.IOException
protected void processLS(java.lang.String path) throws java.io.IOException
processLS
in class org.apache.pig.tools.pigscript.parser.PigScriptParser
java.io.IOException
protected void processPWD() throws java.io.IOException
processPWD
in class org.apache.pig.tools.pigscript.parser.PigScriptParser
java.io.IOException
protected void processHistory(boolean withNumbers)
processHistory
in class org.apache.pig.tools.pigscript.parser.PigScriptParser
protected void printHelp()
printHelp
in class org.apache.pig.tools.pigscript.parser.PigScriptParser
protected void processMove(java.lang.String src, java.lang.String dst) throws java.io.IOException
processMove
in class org.apache.pig.tools.pigscript.parser.PigScriptParser
java.io.IOException
protected void processCopy(java.lang.String src, java.lang.String dst) throws java.io.IOException
processCopy
in class org.apache.pig.tools.pigscript.parser.PigScriptParser
java.io.IOException
protected void processCopyToLocal(java.lang.String src, java.lang.String dst) throws java.io.IOException
processCopyToLocal
in class org.apache.pig.tools.pigscript.parser.PigScriptParser
java.io.IOException
protected void processCopyFromLocal(java.lang.String src, java.lang.String dst) throws java.io.IOException
processCopyFromLocal
in class org.apache.pig.tools.pigscript.parser.PigScriptParser
java.io.IOException
protected void processMkdir(java.lang.String dir) throws java.io.IOException
processMkdir
in class org.apache.pig.tools.pigscript.parser.PigScriptParser
java.io.IOException
protected void processPig(java.lang.String cmd) throws java.io.IOException
processPig
in class org.apache.pig.tools.pigscript.parser.PigScriptParser
java.io.IOException
protected void processRemove(java.lang.String path, java.lang.String options) throws java.io.IOException
processRemove
in class org.apache.pig.tools.pigscript.parser.PigScriptParser
java.io.IOException
protected void processFsCommand(java.lang.String[] cmdTokens) throws java.io.IOException
processFsCommand
in class org.apache.pig.tools.pigscript.parser.PigScriptParser
java.io.IOException
protected void processShCommand(java.lang.String[] cmdTokens) throws java.io.IOException
processShCommand
in class org.apache.pig.tools.pigscript.parser.PigScriptParser
java.io.IOException
public static int runSQLCommand(java.lang.String hcatBin, java.lang.String cmd, boolean mInteractive) throws java.io.IOException
java.io.IOException
protected void processSQLCommand(java.lang.String cmd) throws java.io.IOException
processSQLCommand
in class org.apache.pig.tools.pigscript.parser.PigScriptParser
java.io.IOException
protected void processDefault(java.lang.String key, java.lang.String value) throws java.io.IOException
processDefault
in class org.apache.pig.tools.pigscript.parser.PigScriptParser
java.io.IOException
protected void processDeclare(java.lang.String key, java.lang.String value) throws java.io.IOException
processDeclare
in class org.apache.pig.tools.pigscript.parser.PigScriptParser
java.io.IOException
protected void setExplainState(GruntParser.ExplainState explainState)
Copyright © 2007-2017 The Apache Software Foundation