Package gudusoft.gsqlparser.parser
Class ClickHouseSqlParser
Object
gudusoft.gsqlparser.parser.ClickHouseSqlParser
- All Implemented Interfaces:
SqlParser
ClickHouse SQL parser implementation.
Implementation Status: DELEGATION PHASE
- Current: Delegates to legacy TGSqlParser
- Future: Will extract ClickHouse-specific logic incrementally
- Since:
- 3.2.0.0
- See Also:
-
SqlParserSqlParserFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the database vendor this parser handles.parse(ParserContext context) Parse SQL from the given context.tokenize(ParserContext context) Tokenize SQL without parsing or statement extraction.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface gudusoft.gsqlparser.parser.SqlParser
doExtractRawStatements, getrawsqlstatements
-
Constructor Details
-
ClickHouseSqlParser
public ClickHouseSqlParser()
-
-
Method Details
-
getVendor
Description copied from interface:SqlParserGet the database vendor this parser handles. -
parse
Description copied from interface:SqlParserParse SQL from the given context.This method performs full parsing including:
- Tokenization (lexical analysis)
- Syntax analysis (building parse tree)
- Semantic analysis (resolving references)
All inputs come from the context parameter, all outputs go to the result. This ensures clean separation of concerns and thread-safety.
-
tokenize
Description copied from interface:SqlParserTokenize SQL without parsing or statement extraction.This method performs only tokenization (lexical analysis):
- Tokenization (lexical analysis)
The result contains tokens but NO statements. Use this when you only need the token stream (e.g., for syntax highlighting, token analysis).
For statement boundaries without full parsing, use
SqlParser.getrawsqlstatements(ParserContext). -
toString
-