org.apache.hadoop.hbase.hql.generated
Class HQLParser

java.lang.Object
  extended by org.apache.hadoop.hbase.hql.generated.HQLParser
All Implemented Interfaces:
HQLParserConstants

public class HQLParser
extends Object
implements HQLParserConstants

Parsing command line.


Field Summary
 Token jj_nt
           
 boolean lookingAhead
           
 Token token
           
 HQLParserTokenManager token_source
           
 
Fields inherited from interface org.apache.hadoop.hbase.hql.generated.HQLParserConstants
ADD, ALTER, AND, ASTERISK, BLOCK, BLOOMFILTER, CHANGE, CLEAR, COLUMNFAMILIES, COMMA, COMPRESSION, COUNT, COUNTING_BLOOMFILTER, CREATE, DEFAULT, DELETE, DESC, DESCRIBE, DISABLE, DROP, ENABLE, EOF, EQUALS, EXIT, EXPONENT, FLOATING_POINT_LITERAL, FROM, FS, HELP, ID, IN, IN_MEMORY, INSERT, INTEGER_LITERAL, INTO, JAR, LCOMP, LIMIT, LPAREN, MAX_LENGTH, MAX_VERSIONS, NONE, NOT, NOTEQUAL, NUM_ENTRIES, NUM_HASH, NUM_VERSIONS, OR, QUOTED_IDENTIFIER, RCOMP, RECORD, RETOUCHED_BLOOMFILTER, ROW, RPAREN, SELECT, SHOW, STARTING, STRING_LITERAL, TABLE, TIMESTAMP, tokenImage, TRUNCATE, UNTIL, VALUES, VECTOR_SIZE, WHERE
 
Constructor Summary
HQLParser(HQLParserTokenManager tm)
           
HQLParser(InputStream stream)
           
HQLParser(InputStream stream, String encoding)
           
HQLParser(Reader stream)
           
HQLParser(String query, Writer o, TableFormatter f)
           
 
Method Summary
 AlterCommand alterCommand()
           
 String appendIndicator(String columnName)
           
 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(HQLParserTokenManager tm)
           
 void ReInit(InputStream stream)
           
 void ReInit(InputStream stream, String encoding)
           
 void ReInit(Reader stream)
           
 SelectCommand selectCommand()
           
 ShowCommand showCommand()
           
 List<String> tableList()
           
 Command terminatedCommand()
          Parses the given array of command line arguments.
 TruncateCommand truncateCommand()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token_source

public HQLParserTokenManager token_source

token

public Token token

jj_nt

public Token jj_nt

lookingAhead

public boolean lookingAhead
Constructor Detail

HQLParser

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

HQLParser

public HQLParser(InputStream stream)

HQLParser

public HQLParser(InputStream stream,
                 String encoding)

HQLParser

public HQLParser(Reader stream)

HQLParser

public HQLParser(HQLParserTokenManager 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

truncateCommand

public final TruncateCommand truncateCommand()
                                      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

getColumn

public final String getColumn()
                       throws ParseException
Throws:
ParseException

getColumns

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

appendIndicator

public final String appendIndicator(String columnName)
                             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(HQLParserTokenManager 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 © 2008 The Apache Software Foundation