Class CreateChDictionary
java.lang.Object
org.pgcodekeeper.core.parsers.antlr.base.statement.ParserAbstract<ChDatabase>
org.pgcodekeeper.core.parsers.antlr.ch.statement.ChParserAbstract
org.pgcodekeeper.core.parsers.antlr.ch.statement.CreateChDictionary
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 Summary
ConstructorsConstructorDescriptionCreateChDictionary(CHParser.Create_dictinary_stmtContext ctx, ChDatabase db, ISettings settings) Creates a parser for ClickHouse CREATE DICTIONARY statements. -
Method Summary
Modifier and TypeMethodDescriptionvoidParses a database object from the current context.voidparseObject(ChDictionary dictionary) Parses dictionary details including attributes, primary key, options, and comments.Methods inherited from class org.pgcodekeeper.core.parsers.antlr.ch.statement.ChParserAbstract
getIdentifiersMethods inherited from class org.pgcodekeeper.core.parsers.antlr.base.statement.ParserAbstract
fillOptionParams, fillOptionParams, getFullCtxText, getFullCtxText, getFullCtxText, getSafe, getSafe, parseArgMode, parseObject
-
Constructor Details
-
CreateChDictionary
public CreateChDictionary(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 statementdb- the ClickHouse database schema being processedsettings- parsing configuration settings
-
-
Method Details
-
parseObject
public void parseObject()Description copied from class:ParserAbstractParses a database object from the current context. Must be implemented by concrete subclasses to handle specific object types.- Specified by:
parseObjectin classParserAbstract<ChDatabase>
-
parseObject
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
-