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

org.apache.lens.driver.cube
Class RewriteUtil

java.lang.Object
  extended by org.apache.lens.driver.cube.RewriteUtil

public class RewriteUtil
extends Object

The Class RewriteUtil.


Field Summary
static org.apache.log4j.Logger LOG
           
 
Constructor Summary
RewriteUtil()
           
 
Method Summary
static boolean isCubeQuery(String query)
          Checks if is cube query.
static Map<LensDriver,String> rewriteQuery(AbstractQueryContext ctx)
          Rewrite query.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.log4j.Logger LOG
Constructor Detail

RewriteUtil

public RewriteUtil()
Method Detail

rewriteQuery

public static Map<LensDriver,String> rewriteQuery(AbstractQueryContext ctx)
                                           throws LensException
Rewrite query.

Parameters:
ctx - the query context
Returns:
the map
Throws:
LensException - the lens exception

isCubeQuery

public static boolean isCubeQuery(String query)
Checks if is cube query.

Parameters:
query - the query
Returns:
true, if is cube query


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