org.apache.hadoop.hbase.hql.generated
Class HQLParser
java.lang.Object
org.apache.hadoop.hbase.hql.generated.HQLParser
- All Implemented Interfaces:
- HQLParserConstants
public class HQLParser
- extends Object
- implements HQLParserConstants
Parsing command line.
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
token_source
public HQLParserTokenManager token_source
token
public Token token
jj_nt
public Token jj_nt
lookingAhead
public boolean lookingAhead
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)
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 © 2006 The Apache Software Foundation