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

org.apache.lens.driver.cube
Class RewriteUtil

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

public final class RewriteUtil
extends Object

The Class RewriteUtil.


Nested Class Summary
static class RewriteUtil.DriverRewriterRunnable
           
 
Field Summary
static org.apache.log4j.Logger LOG
           
 
Method Summary
static DriverQueryPlan getRewriterPlan(RewriteUtil.DriverRewriterRunnable rewriter)
           
static boolean isCubeQuery(String query)
          Checks if is cube query.
static Map<LensDriver,RewriteUtil.DriverRewriterRunnable> 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
Method Detail

rewriteQuery

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

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

getRewriterPlan

public static DriverQueryPlan getRewriterPlan(RewriteUtil.DriverRewriterRunnable rewriter)

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.