public class RexNodeTypeCheck extends Object
| Constructor and Description |
|---|
RexNodeTypeCheck() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.calcite.rex.RexNode |
genConstraintsExpr(HiveConf conf,
org.apache.calcite.rex.RexBuilder rexBuilder,
Table targetTable,
boolean updateStatement,
RowResolver inputRR) |
static Map<ASTNode,org.apache.calcite.rex.RexNode> |
genExprNode(ASTNode expr,
TypeCheckCtx tcCtx)
Given an AST expression and a context, it will produce a map from AST nodes
to Calcite RexNode.
|
static Map<ASTNode,org.apache.calcite.rex.RexNode> |
genExprNodeJoinCond(ASTNode expr,
TypeCheckCtx tcCtx,
org.apache.calcite.rex.RexBuilder rexBuilder)
Given an AST join expression and a context, it will produce a map from AST nodes
to Calcite RexNode.
|
static TypeCheckProcFactory.DefaultExprProcessor |
getExprNodeDefaultExprProcessor(org.apache.calcite.rex.RexBuilder rexBuilder)
Returns the default processor to generate Calcite RexNode from AST nodes.
|
static org.apache.calcite.rex.RexNode |
toExprNode(ColumnInfo columnInfo,
RowResolver rowResolver,
int offset,
org.apache.calcite.rex.RexBuilder rexBuilder)
Transforms column information into the corresponding Calcite RexNode.
|
public static Map<ASTNode,org.apache.calcite.rex.RexNode> genExprNode(ASTNode expr, TypeCheckCtx tcCtx) throws SemanticException
SemanticExceptionpublic static TypeCheckProcFactory.DefaultExprProcessor getExprNodeDefaultExprProcessor(org.apache.calcite.rex.RexBuilder rexBuilder)
public static Map<ASTNode,org.apache.calcite.rex.RexNode> genExprNodeJoinCond(ASTNode expr, TypeCheckCtx tcCtx, org.apache.calcite.rex.RexBuilder rexBuilder) throws SemanticException
SemanticExceptionpublic static org.apache.calcite.rex.RexNode toExprNode(ColumnInfo columnInfo, RowResolver rowResolver, int offset, org.apache.calcite.rex.RexBuilder rexBuilder) throws SemanticException
SemanticExceptionpublic static org.apache.calcite.rex.RexNode genConstraintsExpr(HiveConf conf, org.apache.calcite.rex.RexBuilder rexBuilder, Table targetTable, boolean updateStatement, RowResolver inputRR) throws SemanticException
SemanticExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.