Class RelOptUtil.RexInputConverter

    • Field Detail

      • rexBuilder

        protected final RexBuilder rexBuilder
      • rightDestFields

        private final java.util.List<RelDataTypeField> rightDestFields
      • nLeftDestFields

        private final int nLeftDestFields
      • adjustments

        private final int[] adjustments
    • Constructor Detail

      • RexInputConverter

        private RexInputConverter​(RexBuilder rexBuilder,
                                  java.util.List<RelDataTypeField> srcFields,
                                  java.util.List<RelDataTypeField> destFields,
                                  java.util.List<RelDataTypeField> leftDestFields,
                                  java.util.List<RelDataTypeField> rightDestFields,
                                  int[] adjustments)
        Parameters:
        rexBuilder - builder for creating new RexInputRefs
        srcFields - fields where the RexInputRefs originated from; if null, a new RexInputRef is always created, referencing the input from destFields corresponding to its current index value
        destFields - fields that the new RexInputRefs will be referencing; if null, use the type information from the source field when creating the new RexInputRef
        leftDestFields - in the case where the destination is a join, these are the fields from the left join input
        rightDestFields - in the case where the destination is a join, these are the fields from the right join input
        adjustments - the amount to adjust each field by
      • RexInputConverter

        public RexInputConverter​(RexBuilder rexBuilder,
                                 java.util.List<RelDataTypeField> srcFields,
                                 int[] adjustments)