public interface QueryRewriter
| Modifier and Type | Method and Description |
|---|---|
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.
|
String rewrite(String query, org.apache.hadoop.conf.Configuration queryConf, org.apache.hadoop.hive.conf.HiveConf metastoreConf) throws LensException
query - the queryqueryConf - the query configurationmetastoreConf - The metastore configuration. If rewriters requires to access metastore, this configuration
needs to passedLensException - the lens exceptionvoid init(org.apache.hadoop.conf.Configuration rewriteConf)
rewriteConf - Configuration required for rewriter initCopyright © 2014–2018 Apache Software Foundation. All rights reserved.