org.apache.hadoop.hbase.shell.generated
Class Parser

java.lang.Object
  extended by org.apache.hadoop.hbase.shell.generated.Parser
All Implemented Interfaces:
ParserConstants

public class Parser
extends Object
implements ParserConstants

Parsing command line.


Field Summary
 Token jj_nt
           
 Token token
           
 ParserTokenManager token_source
           
 
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
 
Constructor Summary
Parser(InputStream stream)
           
Parser(InputStream stream, String encoding)
           
Parser(ParserTokenManager tm)
           
Parser(Reader stream)
           
Parser(String query)
           
 
Method Summary
 ClearCommand clearCommand()
           
 Command cmdStatement()
           
 Map<String,List<String>> ConditionExpression()
           
 CreateCommand createCommand()
           
 DeleteCommand deleteCommand()
           
 DescCommand descCommand()
           
 void disable_tracing()
           
 DropCommand dropCommand()
           
 void enable_tracing()
           
 ExitCommand exitCommand()
           
 ParseException generateParseException()
           
 int getInt()
           
 List<String> getLiteralValues()
           
 Token getNextToken()
           
 String getQueryStr()
           
 String getString()
          TODO : expressions codes need more love.
 String getStringLiteral()
           
 Token getToken(int index)
           
 HelpCommand helpCommand()
           
 InsertCommand insertCommand()
           
 void ReInit(InputStream stream)
           
 void ReInit(InputStream stream, String encoding)
           
 void ReInit(ParserTokenManager tm)
           
 void ReInit(Reader stream)
           
 SelectCommand selectCommand()
           
 ShowCommand showCommand()
           
 Command terminatedCommand()
          Parses the given array of command line arguments.
 Map<String,List<String>> WhereClause()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token_source

public ParserTokenManager token_source

token

public Token token

jj_nt

public Token jj_nt
Constructor Detail

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)
Method Detail

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