Class ChCreateDictionary


public final class ChCreateDictionary extends ChParserAbstract
Parser for ClickHouse CREATE DICTIONARY statements. Handles dictionary creation including attributes, primary keys, source configurations, and various dictionary options like LIFETIME, LAYOUT, RANGE, and SETTINGS.
  • Constructor Details

    • ChCreateDictionary

      public ChCreateDictionary(CHParser.Create_dictinary_stmtContext ctx, ChDatabase db, ISettings settings)
      Creates a parser for ClickHouse CREATE DICTIONARY statements.
      Parameters:
      ctx - the ANTLR parse tree context for the CREATE DICTIONARY statement
      db - the ClickHouse database schema being processed
      settings - parsing configuration settings
  • 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<ChDatabase>
    • parseObject

      public void parseObject(ChDictionary dictionary)
      Parses dictionary details including attributes, primary key, options, and comments. Processes dictionary attributes with their types, default values, and expressions.
      Parameters:
      dictionary - the dictionary object to populate with parsed information