Class InternalFunctionFactory.DateObFunction

    • Field Detail

      • DATE_TYPE

        private static final TType DATE_TYPE
      • date_format_sho

        private static final java.text.DateFormat date_format_sho
        The date format object that handles the conversion of Date objects to a string readable representation of the given date.

        NOTE: Due to bad design these objects are not thread-safe.

      • date_format_sql

        private static final java.text.DateFormat date_format_sql
      • date_format_med

        private static final java.text.DateFormat date_format_med
      • date_format_lon

        private static final java.text.DateFormat date_format_lon
      • date_format_ful

        private static final java.text.DateFormat date_format_ful
    • Constructor Detail

      • DateObFunction

        public DateObFunction​(Expression[] params)
    • Method Detail

      • dateVal

        private static TObject dateVal​(java.util.Date d)
      • evaluate

        public TObject evaluate​(GroupResolver group,
                                VariableResolver resolver,
                                QueryContext context)
        Description copied from interface: Function
        Evaluates the function and returns a TObject that represents the result of the function. The VariableResolver object should be used to look up variables in the parameter of the function. The 'FunctionTable' object should only be used when the function is a grouping function. For example, 'avg(value_of)'.