Package dev.frostlake.executor.commands
Class CreateRelationalHandler
java.lang.Object
dev.frostlake.executor.commands.CreateRelationalHandler
- All Implemented Interfaces:
CommandHandler
Handles the SELECT-backed CREATE shapes — VIEW, MATERIALIZED VIEW, and DYNAMIC TABLE — extracted from
DDLCommandHandler, which keeps the CREATE dispatch and delegates here. Shared schema/name/text
helpers are reached via the ddl back-reference.-
Method Summary
Modifier and TypeMethodDescriptionGet catalog instanceGet query executor instancehandleCreateDynamicTable(FrostlakeParser.CreateStatementContext ctx, boolean ifNotExists) handleCreateMaterializedView(FrostlakeParser.CreateStatementContext ctx, boolean ifNotExists) handleCreateView(FrostlakeParser.CreateStatementContext ctx, boolean ifNotExists) Methods 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
-
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
-
handleCreateView
-
handleCreateMaterializedView
public Object handleCreateMaterializedView(FrostlakeParser.CreateStatementContext ctx, boolean ifNotExists) -
handleCreateDynamicTable
public Object handleCreateDynamicTable(FrostlakeParser.CreateStatementContext ctx, boolean ifNotExists)
-