gr.uoa.di.madgik.hive
Class HiveQLParser

java.lang.Object
  extended by gr.uoa.di.madgik.hive.HiveQLParser

public class HiveQLParser
extends Object

A parser of Hive Query Language.

Author:
john.gerbesiotis - DI NKUA

Constructor Summary
HiveQLParser()
           
 
Method Summary
 int compile()
           
 PlanNode constructPlan()
           
 int execute()
           
 org.antlr.runtime.tree.CommonTree getASTree()
          Get the Abstract Syntax Tree
 QueryType getQueryType()
          Get last parsed query type
 void parse(String command)
          Parses the HiveQL query command
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HiveQLParser

public HiveQLParser()
Method Detail

parse

public void parse(String command)
           throws Exception
Parses the HiveQL query command

Parameters:
command - The query to be parsed
Throws:
Exception - If query parsing failed

getQueryType

public QueryType getQueryType()
Get last parsed query type

Returns:
The QueryType

compile

public int compile()

execute

public int execute()

constructPlan

public PlanNode constructPlan()
                       throws Exception
Throws:
Exception

getASTree

public org.antlr.runtime.tree.CommonTree getASTree()
Get the Abstract Syntax Tree

Returns:
The parsed query's AST


Copyright © 2013. All Rights Reserved.