This project has retired. For details please refer to its Attic page.
QueryRewriter (Lens 2.1.0-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, org.apache.hadoop.hive.conf.HiveConf metastoreConf)
          Rewrite.
 

Method Detail

rewrite

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

Parameters:
query - the query
queryConf - the query configuration
metastoreConf - The metastore configuration. If rewriters requires to access metastore, this configuration needs to passed
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.