public class ColumnPrunerProcCtx extends Object implements NodeProcessorCtx
| Constructor and Description |
|---|
ColumnPrunerProcCtx(ParseContext pctx) |
| Modifier and Type | Method and Description |
|---|---|
List<FieldNode> |
genColLists(Operator<? extends OperatorDesc> curOp)
Creates the list of internal column names(represented by field nodes,
these names are used in the RowResolver and are different from the
external column names) that are needed in the subtree.
|
List<FieldNode> |
genColLists(Operator<? extends OperatorDesc> curOp,
Operator<? extends OperatorDesc> child)
Creates the list of internal column names (represented by field nodes,
these names are used in the RowResolver and are different from the
external column names) that are needed in the subtree.
|
List<FieldNode> |
getColsFromSelectExpr(SelectOperator op)
Creates the list of internal column names (represented by field nodes)
from select expressions in a select operator.
|
Map<CommonJoinOperator,Map<Byte,List<FieldNode>>> |
getJoinPrunedColLists() |
ParseContext |
getParseContext() |
List<FieldNode> |
getPrunedColList(Operator<? extends OperatorDesc> op) |
Map<Operator<? extends OperatorDesc>,List<FieldNode>> |
getPrunedColLists() |
List<FieldNode> |
getSelectColsFromChildren(SelectOperator op,
List<FieldNode> colList)
Creates the list of internal column names for select * expressions.
|
List<FieldNode> |
getSelectColsFromLVJoin(RowSchema rs,
List<FieldNode> 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 Map<CommonJoinOperator,Map<Byte,List<FieldNode>>> getJoinPrunedColLists()
public List<FieldNode> getPrunedColList(Operator<? extends OperatorDesc> op)
public Map<Operator<? extends OperatorDesc>,List<FieldNode>> getPrunedColLists()
public List<FieldNode> genColLists(Operator<? extends OperatorDesc> curOp) throws SemanticException
curOp - The root of the operator subtree.SemanticExceptionpublic List<FieldNode> genColLists(Operator<? extends OperatorDesc> curOp, Operator<? extends OperatorDesc> child) throws SemanticException
curOp - The root of the operator subtree.child - The consumer.SemanticExceptionpublic List<FieldNode> getColsFromSelectExpr(SelectOperator op)
op - The select operator.public List<FieldNode> getSelectColsFromChildren(SelectOperator op, List<FieldNode> colList)
op - The select operator.colList - The list of internal column names (represented by field nodes)
returned by the children of the select operator.public List<FieldNode> getSelectColsFromLVJoin(RowSchema rs, List<FieldNode> colList) throws SemanticException
SemanticExceptionpublic void handleFilterUnionChildren(Operator<? extends OperatorDesc> curOp) throws SemanticException
curOp - The filter operator which need to handle children.SemanticExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.