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

org.apache.lens.server.api.query
Interface QueryRewriter

All Known Implementing Classes:
ColumnarSQLRewriter, JDBCDriver.DummyQueryRewriter

public interface QueryRewriter

The Interface QueryRewriter.


Method Summary
 void init(org.apache.hadoop.conf.Configuration rewriteConf)
          Set conf for the rewriter
 String rewrite(String query, org.apache.hadoop.conf.Configuration queryConf)
          Rewrite.
 

Method Detail

rewrite

String rewrite(String query,
               org.apache.hadoop.conf.Configuration queryConf)
               throws LensException
Rewrite.

Parameters:
queryConf - the query configuration
query - the query
Returns:
the string
Throws:
LensException - the lens exception

init

void init(org.apache.hadoop.conf.Configuration rewriteConf)
Set conf for the rewriter

Parameters:
rewriteConf - Configuration required for rewriter init


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