public class HiveParserRowResolver extends Object implements Serializable
Constructor and Description |
---|
HiveParserRowResolver() |
HiveParserRowResolver(org.apache.hadoop.hive.ql.exec.RowSchema rowSchema,
LinkedHashMap<String,LinkedHashMap<String,org.apache.hadoop.hive.ql.exec.ColumnInfo>> rslvMap,
HashMap<String,String[]> invRslvMap,
Map<String,String[]> altInvRslvMap,
Map<String,HiveParserASTNode> expressionMap,
boolean isExprResolver,
LinkedHashMap<String,LinkedHashMap<String,String>> ambiguousColumns,
boolean checkForAmbiguity) |
Modifier and Type | Method and Description |
---|---|
static boolean |
add(HiveParserRowResolver rrToAddTo,
HiveParserRowResolver rrToAddFrom) |
boolean |
addMappingOnly(String tabAlias,
String colAlias,
org.apache.hadoop.hive.ql.exec.ColumnInfo colInfo) |
HiveParserRowResolver |
duplicate() |
org.apache.hadoop.hive.ql.exec.ColumnInfo |
get(String tabAlias,
String colAlias)
Gets the column Info to tab_alias.col_alias type of a column reference.
|
String[] |
getAlternateMappings(String internalName) |
boolean |
getCheckForAmbiguity() |
ArrayList<org.apache.hadoop.hive.ql.exec.ColumnInfo> |
getColumnInfos() |
static HiveParserRowResolver |
getCombinedRR(HiveParserRowResolver leftRR,
HiveParserRowResolver rightRR)
Return a new row resolver that is combination of left RR and right RR.
|
org.apache.hadoop.hive.ql.exec.ColumnInfo |
getExpression(HiveParserASTNode node)
Retrieves the ColumnInfo corresponding to a source expression which exactly matches the
string rendering of the given HiveParserASTNode.
|
HiveParserASTNode |
getExpressionSource(HiveParserASTNode node)
Retrieves the source expression matching a given HiveParserASTNode's string rendering
exactly.
|
LinkedHashMap<String,org.apache.hadoop.hive.ql.exec.ColumnInfo> |
getFieldMap(String tabAlias) |
boolean |
getIsExprResolver() |
HiveParserNamedJoinInfo |
getNamedJoinInfo() |
int |
getPosition(String internalName) |
List<String> |
getReferenceableColumnAliases(String tableAlias,
int max) |
org.apache.hadoop.hive.ql.exec.RowSchema |
getRowSchema() |
LinkedHashMap<String,LinkedHashMap<String,org.apache.hadoop.hive.ql.exec.ColumnInfo>> |
getRslvMap() |
boolean |
hasTableAlias(String tabAlias) |
void |
put(String tabAlias,
String colAlias,
org.apache.hadoop.hive.ql.exec.ColumnInfo colInfo) |
void |
putExpression(HiveParserASTNode node,
org.apache.hadoop.hive.ql.exec.ColumnInfo colInfo)
Puts a resolver entry corresponding to a source expression which is to be used for identical
expression recognition (e.g. for matching expressions in the SELECT list with the GROUP BY
clause).
|
boolean |
putWithCheck(String tabAlias,
String colAlias,
String internalName,
org.apache.hadoop.hive.ql.exec.ColumnInfo newCI)
Adds column to RR, checking for duplicate columns.
|
String[] |
reverseLookup(String internalName) |
void |
setCheckForAmbiguity(boolean check) |
void |
setIsExprResolver(boolean isExprResolver) |
void |
setNamedJoinInfo(HiveParserNamedJoinInfo namedJoinInfo) |
String |
toString() |
public HiveParserRowResolver()
public HiveParserRowResolver(org.apache.hadoop.hive.ql.exec.RowSchema rowSchema, LinkedHashMap<String,LinkedHashMap<String,org.apache.hadoop.hive.ql.exec.ColumnInfo>> rslvMap, HashMap<String,String[]> invRslvMap, Map<String,String[]> altInvRslvMap, Map<String,HiveParserASTNode> expressionMap, boolean isExprResolver, LinkedHashMap<String,LinkedHashMap<String,String>> ambiguousColumns, boolean checkForAmbiguity)
public void putExpression(HiveParserASTNode node, org.apache.hadoop.hive.ql.exec.ColumnInfo colInfo)
public org.apache.hadoop.hive.ql.exec.ColumnInfo getExpression(HiveParserASTNode node) throws org.apache.hadoop.hive.ql.parse.SemanticException
org.apache.hadoop.hive.ql.parse.SemanticException
public HiveParserASTNode getExpressionSource(HiveParserASTNode node)
public void put(String tabAlias, String colAlias, org.apache.hadoop.hive.ql.exec.ColumnInfo colInfo)
public boolean addMappingOnly(String tabAlias, String colAlias, org.apache.hadoop.hive.ql.exec.ColumnInfo colInfo)
public boolean hasTableAlias(String tabAlias)
public org.apache.hadoop.hive.ql.exec.ColumnInfo get(String tabAlias, String colAlias) throws org.apache.hadoop.hive.ql.parse.SemanticException
tabAlias
- The table alias to match (this is null if the column reference is non
aliased)colAlias
- The column name that is being searched fororg.apache.hadoop.hive.ql.parse.SemanticException
public ArrayList<org.apache.hadoop.hive.ql.exec.ColumnInfo> getColumnInfos()
public List<String> getReferenceableColumnAliases(String tableAlias, int max)
public LinkedHashMap<String,org.apache.hadoop.hive.ql.exec.ColumnInfo> getFieldMap(String tabAlias)
public int getPosition(String internalName)
public void setIsExprResolver(boolean isExprResolver)
public boolean getIsExprResolver()
public org.apache.hadoop.hive.ql.exec.RowSchema getRowSchema()
public LinkedHashMap<String,LinkedHashMap<String,org.apache.hadoop.hive.ql.exec.ColumnInfo>> getRslvMap()
public boolean putWithCheck(String tabAlias, String colAlias, String internalName, org.apache.hadoop.hive.ql.exec.ColumnInfo newCI) throws org.apache.hadoop.hive.ql.parse.SemanticException
org.apache.hadoop.hive.ql.parse.SemanticException
public static boolean add(HiveParserRowResolver rrToAddTo, HiveParserRowResolver rrToAddFrom) throws org.apache.hadoop.hive.ql.parse.SemanticException
org.apache.hadoop.hive.ql.parse.SemanticException
public static HiveParserRowResolver getCombinedRR(HiveParserRowResolver leftRR, HiveParserRowResolver rightRR) throws org.apache.hadoop.hive.ql.parse.SemanticException
org.apache.hadoop.hive.ql.parse.SemanticException
public HiveParserRowResolver duplicate()
public HiveParserNamedJoinInfo getNamedJoinInfo()
public void setNamedJoinInfo(HiveParserNamedJoinInfo namedJoinInfo)
public void setCheckForAmbiguity(boolean check)
public boolean getCheckForAmbiguity()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.