Class ConverterImpl

    • Constructor Detail

      • ConverterImpl

        protected ConverterImpl​(RelOptCluster cluster,
                                RelTraitDef traitDef,
                                RelTraitSet traits,
                                RelNode child)
        Creates a ConverterImpl.
        Parameters:
        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

        @Deprecated
        protected java.lang.Error cannotImplement()
        Deprecated.
      • getInputTraits

        public RelTraitSet getInputTraits()
        Description copied from interface: Converter
        Returns the trait of the input relational expression.
        Specified by:
        getInputTraits in interface Converter
        Returns:
        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
        Returns:
        trait which this converter modifies