public final class PcrExprProcFactory extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PcrExprProcFactory.ColumnExprProcessor
Processor for column expressions.
|
static class |
PcrExprProcFactory.DefaultExprProcessor
Processor for constants and null expressions.
|
static class |
PcrExprProcFactory.FieldExprProcessor
FieldExprProcessor.
|
static class |
PcrExprProcFactory.GenericFuncExprProcessor
Processor for Generic functions
If it is AND, OR or NOT, we replace the node to be the constant true or
false if we are sure the result from children, or cut one of the child
if we know partial results.
|
static class |
PcrExprProcFactory.NodeInfoWrapper |
static class |
PcrExprProcFactory.WalkState |
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOG |
Modifier and Type | Method and Description |
---|---|
static NodeProcessor |
getColumnProcessor() |
static NodeProcessor |
getDefaultExprProcessor() |
static NodeProcessor |
getFieldProcessor() |
static NodeProcessor |
getGenericFuncProcessor() |
static ExprNodeGenericFuncDesc |
getOutExpr(ExprNodeGenericFuncDesc funcExpr,
Object[] nodeOutputs) |
static PcrExprProcFactory.NodeInfoWrapper |
walkExprTree(String tabAlias,
ArrayList<Partition> parts,
List<VirtualColumn> vcs,
ExprNodeDesc pred)
Remove partition conditions when necessary from the the expression tree.
|
public static ExprNodeGenericFuncDesc getOutExpr(ExprNodeGenericFuncDesc funcExpr, Object[] nodeOutputs)
public static NodeProcessor getDefaultExprProcessor()
public static NodeProcessor getGenericFuncProcessor()
public static NodeProcessor getFieldProcessor()
public static NodeProcessor getColumnProcessor()
public static PcrExprProcFactory.NodeInfoWrapper walkExprTree(String tabAlias, ArrayList<Partition> parts, List<VirtualColumn> vcs, ExprNodeDesc pred) throws SemanticException
tabAlias
- the table aliasparts
- the list of all pruned partitions for the tablevcs
- virtual columns referencedpred
- expression tree of the target filter operatorSemanticException
Copyright © 2017 The Apache Software Foundation. All rights reserved.