|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hive.ql.optimizer.ColumnPrunerProcCtx
public class ColumnPrunerProcCtx
This class implements the processor context for Column Pruner.
| Constructor Summary | |
|---|---|
ColumnPrunerProcCtx(HashMap<Operator<? extends OperatorDesc>,OpParseContext> opToParseContextMap)
|
|
| Method Summary | |
|---|---|
List<String> |
genColLists(Operator<? extends OperatorDesc> curOp)
Creates the list of internal column names(these names are used in the RowResolver and are different from the external column names) that are needed in the subtree. |
List<String> |
getColsFromSelectExpr(SelectOperator op)
Creates the list of internal column names from select expressions in a select operator. |
Map<CommonJoinOperator,Map<Byte,List<String>>> |
getJoinPrunedColLists()
|
HashMap<Operator<? extends OperatorDesc>,OpParseContext> |
getOpToParseCtxMap()
|
List<String> |
getPrunedColList(Operator<? extends OperatorDesc> op)
|
Map<Operator<? extends OperatorDesc>,List<String>> |
getPrunedColLists()
|
List<String> |
getSelectColsFromChildren(SelectOperator op,
List<String> colList)
Creates the list of internal column names for select * expressions. |
List<String> |
getSelectColsFromLVJoin(RowResolver rr,
List<String> colList)
Create the list of internal columns for select tag of LV |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ColumnPrunerProcCtx(HashMap<Operator<? extends OperatorDesc>,OpParseContext> opToParseContextMap)
| Method Detail |
|---|
public Map<CommonJoinOperator,Map<Byte,List<String>>> getJoinPrunedColLists()
public List<String> getPrunedColList(Operator<? extends OperatorDesc> op)
public HashMap<Operator<? extends OperatorDesc>,OpParseContext> getOpToParseCtxMap()
public Map<Operator<? extends OperatorDesc>,List<String>> getPrunedColLists()
public List<String> genColLists(Operator<? extends OperatorDesc> curOp)
throws SemanticException
curOp - The root of the operator subtree.
SemanticExceptionpublic List<String> getColsFromSelectExpr(SelectOperator op)
op - The select operator.
public List<String> getSelectColsFromChildren(SelectOperator op,
List<String> colList)
op - The select operator.colList - The list of internal column names returned by the children of the
select operator.
public List<String> getSelectColsFromLVJoin(RowResolver rr,
List<String> colList)
throws SemanticException
SemanticException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||