Class TableFunction

    • Field Detail

      • argsCount

        private int argsCount
    • Constructor Detail

      • TableFunction

        protected TableFunction​(Expression[] args)
    • Method Detail

      • getValue

        public abstract ResultInterface getValue​(SessionLocal session)
        Get a result with.
        Parameters:
        session - the session
        Returns:
        the result
      • getValueTemplate

        public abstract ResultInterface getValueTemplate​(SessionLocal session)
        Get an empty result with the column names set.
        Parameters:
        session - the session
        Returns:
        the empty result
      • optimize

        public void optimize​(SessionLocal session)
        Try to optimize this table function
        Parameters:
        session - the session
      • isDeterministic

        public abstract boolean isDeterministic()
        Whether the function always returns the same result for the same parameters.
        Returns:
        true if it does
      • getSQL

        public java.lang.StringBuilder getSQL​(java.lang.StringBuilder builder,
                                              int sqlFlags)
        Description copied from interface: HasSQL
        Appends the SQL statement of this object to the specified builder.
        Specified by:
        getSQL in interface HasSQL
        Parameters:
        builder - string builder
        sqlFlags - formatting flags
        Returns:
        the specified string builder