gr.uoa.di.madgik.hive
Class HiveQLPlanner

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

public class HiveQLPlanner
extends Object

This class after parsing a HiveQL query creates an abstract plan.

Author:
john.gerbesiotis - DI NKUA

Constructor Summary
HiveQLPlanner()
           
 
Method Summary
 byte[] comressedContentOfFile(File file)
           
 PlanNode getCreatedPlan()
           
static TableDesc getTablesSource(String table)
           
 void processLine(String line)
          Process each HiveQL command separately.
protected static String removeQuotes(String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HiveQLPlanner

public HiveQLPlanner()
Method Detail

processLine

public void processLine(String line)
                 throws Exception
Process each HiveQL command separately. Line is split to multiple commands before processing.

Parameters:
line - Multiple queries line
Throws:
Exception - if parsing fails

getCreatedPlan

public PlanNode getCreatedPlan()

getTablesSource

public static TableDesc getTablesSource(String table)

removeQuotes

protected static String removeQuotes(String str)

comressedContentOfFile

public byte[] comressedContentOfFile(File file)


Copyright © 2013. All Rights Reserved.