Class ReflectiveConvertletTable

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<java.lang.Object,​java.lang.Object> map  
    • Field Detail

      • map

        private final java.util.Map<java.lang.Object,​java.lang.Object> map
    • Constructor Detail

      • ReflectiveConvertletTable

        public ReflectiveConvertletTable()
    • Method Detail

      • registerNodeTypeMethod

        private void registerNodeTypeMethod​(java.lang.reflect.Method method)
        Registers method if it: a. is public, and b. is named "convertXxx", and c. has a return type of "RexNode" or a subtype d. has a 2 parameters with types ConvertletContext and SqlNode (or a subtype) respectively.
      • registerOpTypeMethod

        private void registerOpTypeMethod​(java.lang.reflect.Method method)
        Registers method if it: a. is public, and b. is named "convertXxx", and c. has a return type of "RexNode" or a subtype d. has a 3 parameters with types: ConvertletContext; SqlOperator (or a subtype), SqlCall (or a subtype).
      • addAlias

        protected void addAlias​(SqlOperator alias,
                                SqlOperator target)
        Registers that one operator is an alias for another.
        Parameters:
        alias - Operator which is alias
        target - Operator to translate calls to