Class YearFunction

  • All Implemented Interfaces:
    java.lang.Iterable<GroupingExpression>

    public class YearFunction
    extends FunctionNode
    This class represents a year timestamp-function in a GroupingExpression. It evaluates to a long that equals the full year (e.g. 2010) of the result of the argument.
    Author:
    Simon Thoresen Hult, bratseth
    • Constructor Detail

      • YearFunction

        public YearFunction​(GroupingExpression exp)
        Constructs a new instance of this class.
        Parameters:
        exp - The expression to evaluate, must evaluate to a long.