org.apache.lens.cube.parse
Class DenormalizationResolver
java.lang.Object
org.apache.lens.cube.parse.DenormalizationResolver
public class DenormalizationResolver
- extends Object
This class resolves all the reference columns that are queried.
Keeps track of the context that if any candidate needs to use columns through tables referenced and replaces the
columns from referenced tables in all the ASTs
Method Summary |
void |
rewriteContext(CubeQueryContext cubeql)
Find all de-normalized columns, if these columns are not directly available in candidate tables, query will be
replaced with the corresponding table reference |
DenormalizationResolver
public DenormalizationResolver(org.apache.hadoop.conf.Configuration conf)
rewriteContext
public void rewriteContext(CubeQueryContext cubeql)
throws org.apache.hadoop.hive.ql.parse.SemanticException
- Find all de-normalized columns, if these columns are not directly available in candidate tables, query will be
replaced with the corresponding table reference
- Parameters:
cubeql
- CubeQueryContext
- Throws:
org.apache.hadoop.hive.ql.parse.SemanticException
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.