Interface TableEnvironmentInternal
- All Superinterfaces:
TableEnvironment
- All Known Implementing Classes:
TableEnvironmentImpl
An internal interface of
TableEnvironment that defines extended methods used for TableImpl.
Once old planner is removed, this class also can be removed. By then, these methods can be moved into TableEnvironmentImpl.
-
Method Summary
Modifier and TypeMethodDescriptioncompilePlan(List<ModifyOperation> operations) executeCachedPlanInternal(CachedPlan cachedPlan) Execute the givenCachedPlanand return the execution result.executeInternal(List<ModifyOperation> operations) Execute the given modify operations and return the execution result.executeInternal(Operation operation) Execute the given operation and return the execution result.executePlan(InternalPlan plan) default StringexplainInternal(List<Operation> operations, ExplainDetail... extraDetails) Returns the AST of this table and the execution plan to compute the result of this table.explainInternal(List<Operation> operations, ExplainFormat format, ExplainDetail... extraDetails) Returns the AST of this table and the execution plan to compute the result of this table.explainPlan(InternalPlan compiledPlan, ExplainDetail... extraDetails) fromTableSource(org.apache.flink.table.legacy.sources.TableSource<?> source) Deprecated.Returns aCatalogManagerthat deals with all catalog objects.Returns aOperationTreeBuilderthat can createQueryOperations.Return aParserthat provides methods for parsing a SQL string.Methods inherited from interface org.apache.flink.table.api.TableEnvironment
compilePlanSql, createCatalog, createFunction, createFunction, createFunction, createFunction, createStatementSet, createTable, createTable, createTemporaryFunction, createTemporaryFunction, createTemporaryFunction, createTemporarySystemFunction, createTemporarySystemFunction, createTemporarySystemFunction, createTemporaryTable, createTemporaryTable, createTemporaryView, createView, createView, dropFunction, dropTable, dropTable, dropTemporaryFunction, dropTemporarySystemFunction, dropTemporaryTable, dropTemporaryView, dropView, dropView, executePlan, executeSql, explainSql, explainSql, from, from, fromValues, fromValues, fromValues, fromValues, fromValues, fromValues, getCatalog, getCompletionHints, getConfig, getCurrentCatalog, getCurrentDatabase, listCatalogs, listDatabases, listFullModules, listFunctions, listModules, listTables, listTables, listTemporaryTables, listTemporaryViews, listUserDefinedFunctions, listViews, loadModule, loadPlan, registerCatalog, registerFunction, registerTable, scan, sqlQuery, unloadModule, useCatalog, useDatabase, useModules
-
Method Details
-
getParser
Parser getParser()Return aParserthat provides methods for parsing a SQL string.- Returns:
- initialized
Parser.
-
getCatalogManager
CatalogManager getCatalogManager()Returns aCatalogManagerthat deals with all catalog objects. -
getOperationTreeBuilder
OperationTreeBuilder getOperationTreeBuilder()Returns aOperationTreeBuilderthat can createQueryOperations. -
fromTableSource
Deprecated.Creates a table from a table source.- Parameters:
source- table source used as table
-
executeInternal
Execute the given modify operations and return the execution result.- Parameters:
operations- The operations to be executed.- Returns:
- the affected row counts (-1 means unknown).
-
executeInternal
Execute the given operation and return the execution result.- Parameters:
operation- The operation to be executed.- Returns:
- the content of the execution result.
-
explainInternal
Returns the AST of this table and the execution plan to compute the result of this table.- Parameters:
operations- The operations to be explained.extraDetails- The extra explain details which the explain result should include, e.g. estimated cost, changelog mode for streaming- Returns:
- AST and the execution plan.
-
explainInternal
String explainInternal(List<Operation> operations, ExplainFormat format, ExplainDetail... extraDetails) Returns the AST of this table and the execution plan to compute the result of this table.- Parameters:
operations- The operations to be explained.format- The output format.extraDetails- The extra explain details which the explain result should include, e.g. estimated cost, changelog mode for streaming- Returns:
- AST and the execution plan.
-
executeCachedPlanInternal
Execute the givenCachedPlanand return the execution result.- Parameters:
cachedPlan- The CachedPlan to be executed.- Returns:
- the content of the execution result.
-
compilePlan
-
executePlan
-
explainPlan
-