org.apache.lens.cube.parse
Class CubeSemanticAnalyzer

java.lang.Object
  extended by org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer
      extended by org.apache.hadoop.hive.ql.parse.SemanticAnalyzer
          extended by org.apache.lens.cube.parse.CubeSemanticAnalyzer

public class CubeSemanticAnalyzer
extends org.apache.hadoop.hive.ql.parse.SemanticAnalyzer

Accepts cube query AST and rewrites into storage table query


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer
org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.tableSpec
 
Field Summary
 
Fields inherited from class org.apache.hadoop.hive.ql.parse.SemanticAnalyzer
DUMMY_DATABASE, DUMMY_TABLE
 
Fields inherited from class org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer
HIVE_COLUMN_ORDER_ASC, HIVE_COLUMN_ORDER_DESC
 
Constructor Summary
CubeSemanticAnalyzer(org.apache.hadoop.hive.conf.HiveConf conf)
           
 
Method Summary
 void analyzeInternal(org.apache.hadoop.hive.ql.parse.ASTNode ast)
           
 CubeQueryContext getQueryContext()
           
 void validate()
           
 
Methods inherited from class org.apache.hadoop.hive.ql.parse.SemanticAnalyzer
doPhase1, doPhase1QBExpr, genAllExprNodeDesc, genAllExprNodeDesc, generateErrorMessage, genExprNodeDesc, genExprNodeDesc, genPlan, getColumnInternalName, getMetaData, getMetaData, getParseContext, getQB, getResultSchema, getRowResolver, init, initParseCtx, initPhase1Ctx, parseSelect, putOpInsertMap, setQB
 
Methods inherited from class org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer
analyze, charSetString, getColumnAccessInfo, getColumnNames, getColumns, getDb, getFetchTask, getIdToTableNameMap, getInputs, getLineageInfo, getOutputs, getQueryProperties, getRootTasks, getTableAccessInfo, getUnescapedName, getUnescapedName, getUnescapedUnqualifiedTableName, initCtx, isValidPrefixSpec, readProps, setColumnAccessInfo, setFetchTask, setLineageInfo, setTableAccessInfo, stripIdentifierQuotes, stripQuotes, unescapeIdentifier, unescapeSQLString, validatePartSpec
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CubeSemanticAnalyzer

public CubeSemanticAnalyzer(org.apache.hadoop.hive.conf.HiveConf conf)
                     throws org.apache.hadoop.hive.ql.parse.SemanticException
Throws:
org.apache.hadoop.hive.ql.parse.SemanticException
Method Detail

analyzeInternal

public void analyzeInternal(org.apache.hadoop.hive.ql.parse.ASTNode ast)
                     throws org.apache.hadoop.hive.ql.parse.SemanticException
Overrides:
analyzeInternal in class org.apache.hadoop.hive.ql.parse.SemanticAnalyzer
Throws:
org.apache.hadoop.hive.ql.parse.SemanticException

validate

public void validate()
              throws org.apache.hadoop.hive.ql.parse.SemanticException
Overrides:
validate in class org.apache.hadoop.hive.ql.parse.SemanticAnalyzer
Throws:
org.apache.hadoop.hive.ql.parse.SemanticException

getQueryContext

public CubeQueryContext getQueryContext()


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