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