public class SimpleRexRemap extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleRexRemap.FieldsMarker
This class go through the RexNode, collect all the fieldNames, mark starting positions(RexNode) of fields
so this information can be used later e,.g.
|
static class |
SimpleRexRemap.RexReplace |
| Constructor and Description |
|---|
SimpleRexRemap(org.apache.calcite.rel.RelNode origRel,
org.apache.calcite.rel.type.RelDataType newRowType,
org.apache.calcite.rex.RexBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
static String |
getFullPath(PathSegment pathSeg) |
org.apache.calcite.rex.RexNode |
rewrite(org.apache.calcite.rex.RexNode expr) |
org.apache.calcite.rex.RexNode |
rewriteEqualOnCharToLike(org.apache.calcite.rex.RexNode expr,
Map<org.apache.calcite.rex.RexNode,LogicalExpression> equalOnCastCharExprs) |
org.apache.calcite.rex.RexNode |
rewriteWithMap(org.apache.calcite.rex.RexNode srcRex,
Map<org.apache.calcite.rex.RexNode,LogicalExpression> mapRexToExpr) |
SimpleRexRemap |
setExpressionMap(Map<LogicalExpression,LogicalExpression> exprMap)
Set the map of src expression to target expression, expressions not in the map do not have assigned destinations
|
public SimpleRexRemap(org.apache.calcite.rel.RelNode origRel,
org.apache.calcite.rel.type.RelDataType newRowType,
org.apache.calcite.rex.RexBuilder builder)
public SimpleRexRemap setExpressionMap(Map<LogicalExpression,LogicalExpression> exprMap)
exprMap - public org.apache.calcite.rex.RexNode rewriteEqualOnCharToLike(org.apache.calcite.rex.RexNode expr,
Map<org.apache.calcite.rex.RexNode,LogicalExpression> equalOnCastCharExprs)
public org.apache.calcite.rex.RexNode rewriteWithMap(org.apache.calcite.rex.RexNode srcRex,
Map<org.apache.calcite.rex.RexNode,LogicalExpression> mapRexToExpr)
srcRex - the source RexNode to be rewrittenmapRexToExpr - a map of rex->logical expression to guide what rex to rewritepublic org.apache.calcite.rex.RexNode rewrite(org.apache.calcite.rex.RexNode expr)
public static String getFullPath(PathSegment pathSeg)
Copyright © 2021 The Apache Software Foundation. All rights reserved.