@Internal public class ExpressionConverter extends java.lang.Object
Constructor and Description |
---|
ExpressionConverter(org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.plan.RelOptCluster cluster,
QueryPlanner.QueryParameters params) |
Modifier and Type | Method and Description |
---|---|
org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rex.RexNode |
convertResolvedLiteral(com.google.zetasql.resolvedast.ResolvedNodes.ResolvedLiteral resolvedLiteral)
Convert a resolved literal to a RexNode.
|
org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rex.RexNode |
convertRexNodeFromResolvedExpr(com.google.zetasql.resolvedast.ResolvedNodes.ResolvedExpr expr)
Create a RexNode for a corresponding resolved expression.
|
org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rex.RexNode |
convertRexNodeFromResolvedExpr(com.google.zetasql.resolvedast.ResolvedNodes.ResolvedExpr expr,
java.util.List<com.google.zetasql.resolvedast.ResolvedColumn> columnList,
java.util.List<org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rel.type.RelDataTypeField> fieldList)
Create a RexNode for a corresponding resolved expression node.
|
org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rex.RexNode |
convertRexNodeFromResolvedExprWithRefScan(com.google.zetasql.resolvedast.ResolvedNodes.ResolvedExpr expr,
java.util.List<com.google.zetasql.resolvedast.ResolvedColumn> refScanLeftColumnList,
java.util.List<org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rel.type.RelDataTypeField> leftFieldList,
java.util.List<com.google.zetasql.resolvedast.ResolvedColumn> originalLeftColumnList,
java.util.List<com.google.zetasql.resolvedast.ResolvedColumn> refScanRightColumnList,
java.util.List<org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rel.type.RelDataTypeField> rightFieldList,
java.util.List<com.google.zetasql.resolvedast.ResolvedColumn> originalRightColumnList)
Extract the RexNode from expression with ref scan.
|
int |
indexOfProjectionColumnRef(long colId,
java.util.List<com.google.zetasql.resolvedast.ResolvedColumn> columnList)
Return an index of the projection column reference.
|
java.util.List<org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rex.RexNode> |
retrieveRexNode(com.google.zetasql.resolvedast.ResolvedNodes.ResolvedProjectScan node,
java.util.List<org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rel.type.RelDataTypeField> fieldList)
Extract expressions from a project scan node.
|
java.util.List<org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rex.RexNode> |
retrieveRexNodeFromOrderByScan(org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.plan.RelOptCluster cluster,
com.google.zetasql.resolvedast.ResolvedNodes.ResolvedOrderByScan node,
java.util.List<org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rel.type.RelDataTypeField> fieldList)
Extract expressions from order by scan node.
|
org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rex.RexNode |
trueLiteral() |
public ExpressionConverter(org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.plan.RelOptCluster cluster, QueryPlanner.QueryParameters params)
public java.util.List<org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rex.RexNode> retrieveRexNode(com.google.zetasql.resolvedast.ResolvedNodes.ResolvedProjectScan node, java.util.List<org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rel.type.RelDataTypeField> fieldList)
public java.util.List<org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rex.RexNode> retrieveRexNodeFromOrderByScan(org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.plan.RelOptCluster cluster, com.google.zetasql.resolvedast.ResolvedNodes.ResolvedOrderByScan node, java.util.List<org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rel.type.RelDataTypeField> fieldList)
public org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rex.RexNode convertRexNodeFromResolvedExpr(com.google.zetasql.resolvedast.ResolvedNodes.ResolvedExpr expr, java.util.List<com.google.zetasql.resolvedast.ResolvedColumn> columnList, java.util.List<org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rel.type.RelDataTypeField> fieldList)
public org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rex.RexNode convertRexNodeFromResolvedExpr(com.google.zetasql.resolvedast.ResolvedNodes.ResolvedExpr expr)
public org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rex.RexNode convertRexNodeFromResolvedExprWithRefScan(com.google.zetasql.resolvedast.ResolvedNodes.ResolvedExpr expr, java.util.List<com.google.zetasql.resolvedast.ResolvedColumn> refScanLeftColumnList, java.util.List<org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rel.type.RelDataTypeField> leftFieldList, java.util.List<com.google.zetasql.resolvedast.ResolvedColumn> originalLeftColumnList, java.util.List<com.google.zetasql.resolvedast.ResolvedColumn> refScanRightColumnList, java.util.List<org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rel.type.RelDataTypeField> rightFieldList, java.util.List<com.google.zetasql.resolvedast.ResolvedColumn> originalRightColumnList)
public org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rex.RexNode trueLiteral()
public org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rex.RexNode convertResolvedLiteral(com.google.zetasql.resolvedast.ResolvedNodes.ResolvedLiteral resolvedLiteral)
public int indexOfProjectionColumnRef(long colId, java.util.List<com.google.zetasql.resolvedast.ResolvedColumn> columnList)