Class ConverterImpl

    • Constructor Detail

      • ConverterImpl

        protected ConverterImpl​(RelOptCluster cluster,
                                RelTraitDef traitDef,
                                RelTraitSet traits,
                                RelNode child)
        Creates a ConverterImpl.
        cluster - planner's cluster
        traitDef - the RelTraitDef this converter converts
        traits - the output traits of this converter
        child - child rel (provides input traits)
    • Method Detail

      • cannotImplement

        protected java.lang.Error cannotImplement()
      • getInputTraits

        public RelTraitSet getInputTraits()
        Description copied from interface: Converter
        Returns the trait of the input relational expression.
        Specified by:
        getInputTraits in interface Converter
        input trait
      • getTraitDef

        public RelTraitDef getTraitDef()
        Description copied from interface: Converter
        Returns the definition of trait which this converter works on.

        The input relational expression (matched by the rule) must possess this trait and have the value given by Converter.getInputTraits(), and the traits of the output of this converter given by RelOptNode.getTraitSet() will have one trait altered and the other orthogonal traits will be the same.

        Specified by:
        getTraitDef in interface Converter
        trait which this converter modifies