public class HiveParserQB extends Object
Constructor and Description |
---|
HiveParserQB(String outerId,
String alias,
boolean isSubQ) |
public void print(String msg)
public HiveParserQBParseInfo getParseInfo()
public HiveParserQBMetaData getMetaData()
public void countSelDi()
public void countSel()
public boolean exists(String alias)
public void setTabAlias(String alias, String originTableName, String qualifiedName)
alias
- table aliasoriginTableName
- table name that be actually specified, may be "table", "db.table",
"catalog.db.table"qualifiedName
- table name with full path, always is "catalog.db.table"public void setSubqAlias(String alias, HiveParserQBExpr qbexpr)
public void addAlias(String alias)
public String getId()
public int getNumSels()
public HiveParserQBExpr getSubqForAlias(String alias)
public void rewriteViewToSubq(String alias, String viewName, HiveParserQBExpr qbexpr, CatalogView view)
public void rewriteCTEToSubq(String alias, String cteName, HiveParserQBExpr qbexpr)
public void setIsQuery(boolean isQuery)
public boolean getIsQuery()
public boolean isSimpleSelectQuery()
public org.apache.hadoop.hive.ql.plan.CreateTableDesc getTableDesc()
public void setDirectoryDesc(HiveParserDirectoryDesc directoryDesc)
public HiveParserDirectoryDesc getDirectoryDesc()
public boolean isCTAS()
public List<String> getSkewedColumnNames(String alias)
public HiveParserPTFInvocationSpec getPTFInvocationSpec(HiveParserASTNode node)
public void addPTFNodeToSpec(HiveParserASTNode node, HiveParserPTFInvocationSpec spec)
public HiveParserWindowingSpec getWindowingSpec(String dest)
public void addDestToWindowingSpec(String dest, HiveParserWindowingSpec windowingSpec)
public boolean hasWindowingSpec(String dest)
public HashMap<String,HiveParserWindowingSpec> getAllWindowingSpecs()
public int incrNumSubQueryPredicates()
public HashMap<String,CatalogView> getViewToTabSchema()
public boolean isInsideView()
public void setInsideView(boolean insideView)
public boolean containsQueryWithoutSourceTable()
public boolean isMaterializedView()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.