org.apache.hadoop.hbase.hbql.parser
Class ParserUtil

java.lang.Object
  extended by org.apache.hadoop.hbase.hbql.parser.ParserUtil

public class ParserUtil
extends Object


Constructor Summary
ParserUtil()
           
 
Method Summary
static Object evaluateSelectElement(SelectExpressionContext elem)
           
static ExpressionTree getExpressionTree(String str, MappingContext mappingContext)
           
static org.apache.hadoop.hbase.hbql.antlr.HBqlParser newHBqlParser(String sql)
           
static List<HBqlStatement> parseConsoleStatements(String sql)
           
static Object parseExpression(String sql)
           
static HBqlStatement parseHBqlStatement(String sql)
           
static SelectExpressionContext parseSelectElement(String sql)
           
static ExpressionTree parseWhereExpression(String sql, MappingContext mappingContext)
           
static WithArgs parseWithClause(String sql)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParserUtil

public ParserUtil()
Method Detail

newHBqlParser

public static org.apache.hadoop.hbase.hbql.antlr.HBqlParser newHBqlParser(String sql)
                                                                   throws ParseException
Throws:
ParseException

parseWhereExpression

public static ExpressionTree parseWhereExpression(String sql,
                                                  MappingContext mappingContext)
                                           throws HBqlException
Throws:
HBqlException

getExpressionTree

public static ExpressionTree getExpressionTree(String str,
                                               MappingContext mappingContext)
                                        throws HBqlException,
                                               org.antlr.runtime.RecognitionException
Throws:
HBqlException
org.antlr.runtime.RecognitionException

parseExpression

public static Object parseExpression(String sql)
                              throws HBqlException
Throws:
HBqlException

parseSelectElement

public static SelectExpressionContext parseSelectElement(String sql)
                                                  throws HBqlException
Throws:
HBqlException

evaluateSelectElement

public static Object evaluateSelectElement(SelectExpressionContext elem)
                                    throws HBqlException
Throws:
HBqlException

parseWithClause

public static WithArgs parseWithClause(String sql)
                                throws ParseException
Throws:
ParseException

parseConsoleStatements

public static List<HBqlStatement> parseConsoleStatements(String sql)
                                                  throws HBqlException
Throws:
HBqlException

parseHBqlStatement

public static HBqlStatement parseHBqlStatement(String sql)
                                        throws HBqlException
Throws:
HBqlException


Copyright © 2011. All Rights Reserved.