public static class TypeCheckProcFactory.DefaultExprProcessor extends Object implements NodeProcessor
Constructor and Description |
---|
TypeCheckProcFactory.DefaultExprProcessor() |
Modifier and Type | Method and Description |
---|---|
static ExprNodeDesc |
getFuncExprNodeDesc(String udfName,
ExprNodeDesc... children) |
static String |
getFunctionText(ASTNode expr,
boolean isFunction) |
protected List<String> |
getReferenceableColumnAliases(TypeCheckCtx ctx) |
protected ExprNodeDesc |
getXpathOrFuncExprNodeDesc(ASTNode expr,
boolean isFunction,
ArrayList<ExprNodeDesc> children,
TypeCheckCtx ctx) |
protected static boolean |
isRedundantConversionFunction(ASTNode expr,
boolean isFunction,
ArrayList<ExprNodeDesc> children) |
Object |
process(Node nd,
Stack<Node> stack,
NodeProcessorCtx procCtx,
Object... nodeOutputs)
Generic process for all ops that don't have specific implementations.
|
protected ExprNodeDesc |
processQualifiedColRef(TypeCheckCtx ctx,
ASTNode expr,
Object... nodeOutputs) |
protected void |
validateUDF(ASTNode expr,
boolean isFunction,
TypeCheckCtx ctx,
FunctionInfo fi,
List<ExprNodeDesc> children,
GenericUDF genericUDF) |
public TypeCheckProcFactory.DefaultExprProcessor()
protected static boolean isRedundantConversionFunction(ASTNode expr, boolean isFunction, ArrayList<ExprNodeDesc> children)
public static ExprNodeDesc getFuncExprNodeDesc(String udfName, ExprNodeDesc... children) throws UDFArgumentException
UDFArgumentException
protected void validateUDF(ASTNode expr, boolean isFunction, TypeCheckCtx ctx, FunctionInfo fi, List<ExprNodeDesc> children, GenericUDF genericUDF) throws SemanticException
SemanticException
protected ExprNodeDesc getXpathOrFuncExprNodeDesc(ASTNode expr, boolean isFunction, ArrayList<ExprNodeDesc> children, TypeCheckCtx ctx) throws SemanticException, UDFArgumentException
protected ExprNodeDesc processQualifiedColRef(TypeCheckCtx ctx, ASTNode expr, Object... nodeOutputs) throws SemanticException
SemanticException
public Object process(Node nd, Stack<Node> stack, NodeProcessorCtx procCtx, Object... nodeOutputs) throws SemanticException
NodeProcessor
process
in interface NodeProcessor
nd
- operator to processprocCtx
- operator processor contextnodeOutputs
- A variable argument list of outputs from other nodes in the walkSemanticException
protected List<String> getReferenceableColumnAliases(TypeCheckCtx ctx)
Copyright © 2017 The Apache Software Foundation. All rights reserved.