public class ExprWalkerInfo extends Object implements NodeProcessorCtx
Modifier and Type | Class and Description |
---|---|
protected class |
ExprWalkerInfo.ExprInfo
Information maintained for an expr while walking an expr tree.
|
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
ExprWalkerInfo() |
ExprWalkerInfo(Operator<? extends OperatorDesc> op) |
Modifier and Type | Method and Description |
---|---|
ExprWalkerInfo.ExprInfo |
addExprInfo(ExprNodeDesc expr)
Get additional info for a given expression node if it
exists, or create a new one and store it if it does not
|
void |
addFinalCandidate(String alias,
ExprNodeDesc expr) |
void |
addNonFinalCandidate(String alias,
ExprNodeDesc expr)
Adds the specified expr as a non-final candidate
|
ExprWalkerInfo.ExprInfo |
addOrGetExprInfo(ExprNodeDesc expr)
Get additional info for a given expression node if it
exists, or create a new one and store it if it does not
|
void |
addPushDowns(String alias,
List<ExprNodeDesc> pushDowns)
Adds the passed list of pushDowns for the alias.
|
ExprWalkerInfo.ExprInfo |
getExprInfo(ExprNodeDesc expr)
Get additional info for a given expression node
|
Map<String,List<ExprNodeDesc>> |
getFinalCandidates()
Returns the list of pushdown expressions for each alias that appear in the
current operator's RowResolver.
|
Map<ExprNodeDesc,ExprNodeDesc> |
getNewToOldExprMap() |
Map<String,List<ExprNodeDesc>> |
getNonFinalCandidates()
Returns list of non-final candidate predicate for each map.
|
Operator<? extends OperatorDesc> |
getOp() |
Map<String,List<ExprNodeDesc>> |
getResidualPredicates(boolean clear) |
boolean |
hasAnyCandidates() |
boolean |
hasNonFinalCandidates() |
boolean |
isDeterministic() |
void |
merge(ExprWalkerInfo ewi)
Merges the specified pushdown predicates with the current class.
|
void |
setDeterministic(boolean b)
sets the deterministic flag for this expression.
|
public ExprWalkerInfo()
public ExprWalkerInfo(Operator<? extends OperatorDesc> op)
public Operator<? extends OperatorDesc> getOp()
public Map<ExprNodeDesc,ExprNodeDesc> getNewToOldExprMap()
public ExprWalkerInfo.ExprInfo getExprInfo(ExprNodeDesc expr)
public ExprWalkerInfo.ExprInfo addExprInfo(ExprNodeDesc expr)
public ExprWalkerInfo.ExprInfo addOrGetExprInfo(ExprNodeDesc expr)
public void addFinalCandidate(String alias, ExprNodeDesc expr)
public void addPushDowns(String alias, List<ExprNodeDesc> pushDowns)
alias
- pushDowns
- public Map<String,List<ExprNodeDesc>> getFinalCandidates()
public boolean hasAnyCandidates()
public boolean hasNonFinalCandidates()
public void addNonFinalCandidate(String alias, ExprNodeDesc expr)
expr
- public Map<String,List<ExprNodeDesc>> getNonFinalCandidates()
public Map<String,List<ExprNodeDesc>> getResidualPredicates(boolean clear)
public void merge(ExprWalkerInfo ewi)
ewi
- ExpressionWalkerInfopublic void setDeterministic(boolean b)
b
- deterministic or notpublic boolean isDeterministic()
Copyright © 2017 The Apache Software Foundation. All rights reserved.