@FunctionalInterface public interface SqlParserImplFactory
SqlAbstractParserImpl objects.
A parser factory allows you to include a custom parser in
Planner created through
Frameworks.
| Modifier and Type | Method and Description |
|---|---|
default DdlExecutor |
getDdlExecutor()
Returns a DDL executor.
|
org.apache.calcite.sql.parser.SqlAbstractParserImpl |
getParser(Reader stream)
Get the underlying parser implementation.
|
org.apache.calcite.sql.parser.SqlAbstractParserImpl getParser(Reader stream)
SqlAbstractParserImpl object.default DdlExecutor getDdlExecutor()
The default implementation returns DdlExecutor.USELESS,
which cannot handle any DDL commands.
DDL execution is related to parsing but it is admittedly a stretch to
control them in the same factory. Therefore this is marked 'experimental'.
We are bundling them because they are often overridden at the same time. In
particular, we want a way to refine the behavior of the "server" module,
which supports DDL parsing and execution, and we're not yet ready to define
a new Driver or
CalciteServer.
Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.