Package dev.frostlake.executor.commands
Class CommentCommandHandler
java.lang.Object
dev.frostlake.executor.commands.CommentCommandHandler
- All Implemented Interfaces:
CommandHandler
Handles
COMMENT ON <object-type> … statements, extracted verbatim from
SQLCommandVisitor.visitCommentStatement(dev.frostlake.parser.FrostlakeParser.CommentStatementContext). Catalog lookups run against the injected
Catalog; parse-text extraction (getText, extractStringLiteral) and the
shared engine helpers (parseDataType, resolveCurrentSchema) are reached through the
visitor back-reference so their exact original behavior is preserved.-
Constructor Summary
ConstructorsConstructorDescriptionCommentCommandHandler(Catalog catalog, QueryExecutor queryExecutor, SQLCommandVisitor visitor) -
Method Summary
Modifier and TypeMethodDescriptionGet catalog instanceGet query executor instanceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.frostlake.executor.commands.CommandHandler
extractComment, extractComment, getText, getText, qualifiedNameParts
-
Constructor Details
-
CommentCommandHandler
public CommentCommandHandler(Catalog catalog, QueryExecutor queryExecutor, SQLCommandVisitor visitor)
-
-
Method Details
-
getCatalog
Description copied from interface:CommandHandlerGet catalog instance- Specified by:
getCatalogin interfaceCommandHandler- Returns:
- the engine's metastore catalog, holding the objects this handler reads and mutates
-
getQueryExecutor
Description copied from interface:CommandHandlerGet query executor instance- Specified by:
getQueryExecutorin interfaceCommandHandler- Returns:
- the engine's query executor, for handlers that run nested queries or need session state
-
handle
-