public class ColumnPrunerProcCtx extends Object implements NodeProcessorCtx
Constructor and Description |
---|
ColumnPrunerProcCtx(ParseContext pctx) |
Modifier and Type | Method and Description |
---|---|
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> |
genColLists(Operator<? extends OperatorDesc> curOp,
Operator<? extends OperatorDesc> child)
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() |
ParseContext |
getParseContext() |
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(RowSchema rs,
List<String> colList)
Create the list of internal columns for select tag of LV
|
void |
handleFilterUnionChildren(Operator<? extends OperatorDesc> curOp)
If the input filter operator has direct child(ren) which are union operator,
and the filter's column is not the same as union's
create select operator between them.
|
public ColumnPrunerProcCtx(ParseContext pctx)
public ParseContext getParseContext()
public List<String> getPrunedColList(Operator<? extends OperatorDesc> op)
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.SemanticException
public List<String> genColLists(Operator<? extends OperatorDesc> curOp, Operator<? extends OperatorDesc> child) throws SemanticException
curOp
- The root of the operator subtree.child
- The consumer.SemanticException
public 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(RowSchema rs, List<String> colList) throws SemanticException
SemanticException
public void handleFilterUnionChildren(Operator<? extends OperatorDesc> curOp) throws SemanticException
curOp
- The filter operator which need to handle children.SemanticException
Copyright © 2017 The Apache Software Foundation. All rights reserved.