org.apache.hadoop.hbase.hbql.parser
Class ParserUtil
java.lang.Object
org.apache.hadoop.hbase.hbql.parser.ParserUtil
public class ParserUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParserUtil
public ParserUtil()
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.