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
           
 boolean lookingAhead
           
 Token token
           
 ParserTokenManager token_source
           
 
Fields inherited from interface org.apache.hadoop.hbase.shell.generated.ParserConstants
ADD, ALTER, AND, ASTERISK, BLOCK, BLOOMFILTER, CHANGE, CLEAR, COLUMNFAMILIES, COMMA, COMPRESSION, COUNTING_BLOOMFILTER, CREATE, DEFAULT, DELETE, DESC, DESCRIBE, DISABLE, DOT, DROP, ENABLE, EOF, EQUALS, EXIT, EXPONENT, FLOATING_POINT_LITERAL, FROM, FS, HELP, ID, IN_MEMORY, INSERT, INTEGER_LITERAL, INTO, JAR, LIMIT, LPAREN, MAX_LENGTH, MAX_VERSIONS, NONE, NOTEQUAL, NUM_ENTRIES, NUM_HASH, NUM_VERSIONS, OR, QUOTED_IDENTIFIER, RECORD, RETOUCHED_BLOOMFILTER, ROW, RPAREN, SELECT, SHOW, STARTING, STRING_LITERAL, TABLE, TIMESTAMP, tokenImage, VALUES, VECTOR_SIZE, WHERE
 
Constructor Summary
Parser(InputStream stream)
           
Parser(InputStream stream, String encoding)
           
Parser(ParserTokenManager tm)
           
Parser(Reader stream)
           
Parser(String query, Writer o, TableFormatter f)
           
 
Method Summary
 AlterCommand alterCommand()
           
 ClearCommand clearCommand()
           
 Command cmdStatement()
           
 List<String> ColumnList()
           
 Map<String,Object> ColumnSpec()
           
 CreateCommand createCommand()
           
 DeleteCommand deleteCommand()
           
 DescCommand descCommand()
           
 void disable_tracing()
           
 DisableCommand disableCommand()
           
 DropCommand dropCommand()
           
 void enable_tracing()
           
 EnableCommand enableCommand()
           
 ExitCommand exitCommand()
           
 FsCommand fsCommand()
           
 ParseException generateParseException()
           
 String getColumn()
           
 List<String> getColumns()
           
 List<String> getLiteralValues()
           
 Token getNextToken()
           
 String getQueryStr()
           
 String getStringLiteral()
           
 Token getToken(int index)
           
 HelpCommand helpCommand()
           
 String Identifier()
           
 InsertCommand insertCommand()
           
 JarCommand jarCommand()
           
 int Number()
           
 void ReInit(InputStream stream)
           
 void ReInit(InputStream stream, String encoding)
           
 void ReInit(ParserTokenManager tm)
           
 void ReInit(Reader stream)
           
 SelectCommand selectCommand()
           
 ShowCommand showCommand()
           
 List<String> TableList()
           
 Command terminatedCommand()
          Parses the given array of command line arguments.
 
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

lookingAhead

public boolean lookingAhead
Constructor Detail

Parser

public Parser(String query,
              Writer o,
              TableFormatter f)

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

fsCommand

public final FsCommand fsCommand()
                          throws ParseException
Throws:
ParseException

jarCommand

public final JarCommand jarCommand()
                            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

ColumnSpec

public final Map<String,Object> ColumnSpec()
                                    throws ParseException
Throws:
ParseException

createCommand

public final CreateCommand createCommand()
                                  throws ParseException
Throws:
ParseException

alterCommand

public final AlterCommand alterCommand()
                                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

enableCommand

public final EnableCommand enableCommand()
                                  throws ParseException
Throws:
ParseException

disableCommand

public final DisableCommand disableCommand()
                                    throws ParseException
Throws:
ParseException

clearCommand

public final ClearCommand clearCommand()
                                throws ParseException
Throws:
ParseException

getLiteralValues

public final List<String> getLiteralValues()
                                    throws ParseException
Throws:
ParseException

getStringLiteral

public final String getStringLiteral()
                              throws ParseException
Throws:
ParseException

getColumns

public final List<String> getColumns()
                              throws ParseException
Throws:
ParseException

getColumn

public final String getColumn()
                       throws ParseException
Throws:
ParseException

TableList

public final List<String> TableList()
                             throws ParseException
Throws:
ParseException

ColumnList

public final List<String> ColumnList()
                              throws ParseException
Throws:
ParseException

Number

public final int Number()
                 throws ParseException
Throws:
ParseException

Identifier

public final String Identifier()
                        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