Class CreateAggregate


public final class CreateAggregate extends PgParserAbstract
Parser for PostgreSQL CREATE AGGREGATE statements.

This class handles parsing of aggregate function definitions including state functions, final functions, parallel operations, and various aggregate-specific parameters like state types, initial conditions, and modification functions.

  • Constructor Details

  • Method Details

    • parseObject

      public void parseObject()
      Description copied from class: ParserAbstract
      Parses a database object from the current context. Must be implemented by concrete subclasses to handle specific object types.
      Specified by:
      parseObject in class ParserAbstract<PgDatabase>
    • getParamFuncSignature

      public static String getParamFuncSignature(PgAggregate aggregate, PgAggregate.AggFuncs paramName)
      Gets the function signature for the given aggregate function parameter.

      This method constructs the appropriate function signature based on the aggregate's configuration and the specific function parameter type.

      Parameters:
      aggregate - the aggregate object containing state and parameter information
      paramName - the type of aggregate function parameter
      Returns:
      the formatted function signature string
    • getSortOperSign

      public static String getSortOperSign(PgAggregate aggr)
      Gets the sort operator signature for the aggregate's sort operation.
      Parameters:
      aggr - the aggregate object
      Returns:
      the sort operator signature string