Class CalcRelSplitter.RelType

  • Enclosing class:
    CalcRelSplitter

    public abstract static class CalcRelSplitter.RelType
    extends java.lang.Object
    Type of relational expression. Determines which kinds of expressions it can handle.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected RelType​(java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract boolean canImplement​(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.rex.RexCall call)  
      protected abstract boolean canImplement​(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.rex.RexDynamicParam param)  
      protected abstract boolean canImplement​(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.rex.RexFieldAccess field)  
      protected abstract boolean canImplement​(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.rex.RexLiteral literal)  
      boolean canImplement​(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.rex.RexNode expr, boolean condition)
      Returns whether this RelType can implement a given expression.
      boolean canImplement​(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.rex.RexProgram program)
      Returns whether this tester's RelType can implement a given program.
      protected org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.rel.RelNode makeRel​(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelOptCluster cluster, org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelTraitSet traitSet, org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.tools.RelBuilder relBuilder, org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.rel.RelNode input, org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.rex.RexProgram program)  
      protected boolean supportsCondition()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RelType

        protected RelType​(java.lang.String name)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • canImplement

        protected abstract boolean canImplement​(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.rex.RexFieldAccess field)
      • canImplement

        protected abstract boolean canImplement​(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.rex.RexDynamicParam param)
      • canImplement

        protected abstract boolean canImplement​(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.rex.RexLiteral literal)
      • canImplement

        protected abstract boolean canImplement​(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.rex.RexCall call)
      • supportsCondition

        protected boolean supportsCondition()
      • makeRel

        protected org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.rel.RelNode makeRel​(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelOptCluster cluster,
                                                                                                org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelTraitSet traitSet,
                                                                                                org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.tools.RelBuilder relBuilder,
                                                                                                org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.rel.RelNode input,
                                                                                                org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.rex.RexProgram program)
      • canImplement

        public boolean canImplement​(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.rex.RexNode expr,
                                    boolean condition)
        Returns whether this RelType can implement a given expression.
        Parameters:
        expr - Expression
        condition - Whether expression is a condition
        Returns:
        Whether this RelType can implement a given expression.
      • canImplement

        public boolean canImplement​(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.rex.RexProgram program)
        Returns whether this tester's RelType can implement a given program.
        Parameters:
        program - Program
        Returns:
        Whether this tester's RelType can implement a given program.