org.apache.hadoop.hbase.shell.generated
Class Parser
java.lang.Object
org.apache.hadoop.hbase.shell.generated.Parser
- All Implemented Interfaces:
- ParserConstants
public class Parser
- extends Object
- implements ParserConstants
Parsing command line.
Fields inherited from interface org.apache.hadoop.hbase.shell.generated.ParserConstants |
AND, CLEAR, COLUMN, COLUMNFAMILIES, COMMA, CREATE, DEFAULT, DELETE, DESCRIBE, DOT, DROP, EOF, EQUALS, EXIT, HELP, ID, INSERT, LIMIT, LPAREN, NOTEQUAL, NUM, OPTIONS, OR, QUOTED_STRING, ROW, RPAREN, SELECT, SHOW, STRING, STRING_LITERAL, TIME, tokenImage, VALUES, WHERE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
token_source
public ParserTokenManager token_source
token
public Token token
jj_nt
public Token jj_nt
Parser
public Parser(String query)
Parser
public Parser(InputStream stream)
Parser
public Parser(InputStream stream,
String encoding)
Parser
public Parser(Reader stream)
Parser
public Parser(ParserTokenManager tm)
getQueryStr
public String getQueryStr()
terminatedCommand
public final Command terminatedCommand()
throws ParseException
- Parses the given array of command line arguments.
- Throws:
ParseException
cmdStatement
public final Command cmdStatement()
throws ParseException
- Throws:
ParseException
exitCommand
public final ExitCommand exitCommand()
throws ParseException
- Throws:
ParseException
helpCommand
public final HelpCommand helpCommand()
throws ParseException
- Throws:
ParseException
showCommand
public final ShowCommand showCommand()
throws ParseException
- Throws:
ParseException
descCommand
public final DescCommand descCommand()
throws ParseException
- Throws:
ParseException
createCommand
public final CreateCommand createCommand()
throws ParseException
- Throws:
ParseException
dropCommand
public final DropCommand dropCommand()
throws ParseException
- Throws:
ParseException
insertCommand
public final InsertCommand insertCommand()
throws ParseException
- Throws:
ParseException
deleteCommand
public final DeleteCommand deleteCommand()
throws ParseException
- Throws:
ParseException
selectCommand
public final SelectCommand selectCommand()
throws ParseException
- Throws:
ParseException
clearCommand
public final ClearCommand clearCommand()
throws ParseException
- Throws:
ParseException
getString
public final String getString()
throws ParseException
- TODO : expressions codes need more love.
- Throws:
ParseException
getInt
public final int getInt()
throws ParseException
- Throws:
ParseException
WhereClause
public final Map<String,List<String>> WhereClause()
throws ParseException
- Throws:
ParseException
ConditionExpression
public final Map<String,List<String>> ConditionExpression()
throws ParseException
- Throws:
ParseException
getLiteralValues
public final List<String> getLiteralValues()
throws ParseException
- Throws:
ParseException
getStringLiteral
public final String getStringLiteral()
throws ParseException
- Throws:
ParseException
ReInit
public void ReInit(InputStream stream)
ReInit
public void ReInit(InputStream stream,
String encoding)
ReInit
public void ReInit(Reader stream)
ReInit
public void ReInit(ParserTokenManager tm)
getNextToken
public final Token getNextToken()
getToken
public final Token getToken(int index)
generateParseException
public ParseException generateParseException()
enable_tracing
public final void enable_tracing()
disable_tracing
public final void disable_tracing()
Copyright © 2006 The Apache Software Foundation