This project has retired. For details please refer to its Attic page.
CubeQueryRewriter (Lens 2.0.1-beta-incubating API)

org.apache.lens.cube.parse
Class CubeQueryRewriter

java.lang.Object
  extended by org.apache.lens.cube.parse.CubeQueryRewriter

public class CubeQueryRewriter
extends Object

Rewrites given cube query into simple storage table HQL.


Constructor Summary
CubeQueryRewriter(org.apache.hadoop.conf.Configuration conf)
           
 
Method Summary
 org.apache.hadoop.hive.ql.Context getQLContext()
           
 CubeQueryContext rewrite(org.apache.hadoop.hive.ql.parse.ASTNode astnode)
           
 CubeQueryContext rewrite(String command)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CubeQueryRewriter

public CubeQueryRewriter(org.apache.hadoop.conf.Configuration conf)
Method Detail

rewrite

public CubeQueryContext rewrite(org.apache.hadoop.hive.ql.parse.ASTNode astnode)
                         throws org.apache.hadoop.hive.ql.parse.SemanticException
Throws:
org.apache.hadoop.hive.ql.parse.SemanticException

rewrite

public CubeQueryContext rewrite(String command)
                         throws org.apache.hadoop.hive.ql.parse.ParseException,
                                org.apache.hadoop.hive.ql.parse.SemanticException
Throws:
org.apache.hadoop.hive.ql.parse.ParseException
org.apache.hadoop.hive.ql.parse.SemanticException

getQLContext

public org.apache.hadoop.hive.ql.Context getQLContext()


Copyright © 2014–2015 Apache Software Foundation. All rights reserved.