Class GCDFunction

    • Field Detail

      • MAX_BIT_LENGTH

        public static final int MAX_BIT_LENGTH
    • Constructor Detail

      • GCDFunction

        public GCDFunction​(int function)
    • Method Detail

      • getValue

        public Value getValue​(SessionLocal session)
        Description copied from class: Expression
        Return the resulting value for the current row.
        Overrides:
        getValue in class FunctionN
        Parameters:
        session - the session
        Returns:
        the result
      • optimize

        public Expression optimize​(SessionLocal session)
        Description copied from class: Expression
        Try to optimize the expression.
        Specified by:
        optimize in class Expression
        Parameters:
        session - the session
        Returns:
        the optimized expression
      • checkType

        public static boolean checkType​(Expression e,
                                        java.lang.String name)
        Checks type of GCD, LCM, GCD_AGG, or LCM_AGG argument.
        Parameters:
        e - the argument
        name - the name of the function
        Returns:
        true if argument has NULL data type, false otherwise
      • getName

        public java.lang.String getName()
        Description copied from interface: NamedExpression
        Get the name.
        Returns:
        the name in uppercase