@Internal public interface TableEnvironmentInternal extends TableEnvironment
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.
| Modifier and Type | Method and Description |
|---|---|
CompiledPlan |
compilePlan(List<ModifyOperation> operations) |
TableResultInternal |
executeInternal(List<ModifyOperation> operations)
Execute the given modify operations and return the execution result.
|
TableResultInternal |
executeInternal(Operation operation)
Execute the given operation and return the execution result.
|
TableResultInternal |
executePlan(InternalPlan plan) |
String |
explainInternal(List<Operation> operations,
ExplainDetail... extraDetails)
Returns the AST of this table and the execution plan to compute the result of this table.
|
String |
explainPlan(InternalPlan compiledPlan,
ExplainDetail... extraDetails) |
Table |
fromTableSource(org.apache.flink.table.sources.TableSource<?> source)
Deprecated.
|
CatalogManager |
getCatalogManager()
Returns a
CatalogManager that deals with all catalog objects. |
OperationTreeBuilder |
getOperationTreeBuilder()
Returns a
OperationTreeBuilder that can create QueryOperations. |
Parser |
getParser()
Return a
Parser that provides methods for parsing a SQL string. |
void |
registerTableSinkInternal(String name,
org.apache.flink.table.sinks.TableSink<?> configuredSink)
Registers an external
TableSink with already configured field names and field types
in this TableEnvironment's catalog. |
void |
registerTableSourceInternal(String name,
org.apache.flink.table.sources.TableSource<?> tableSource)
Registers an external
TableSource in this TableEnvironment's catalog. |
compilePlanSql, create, create, createFunction, createFunction, createStatementSet, createTable, createTemporaryFunction, createTemporaryFunction, createTemporarySystemFunction, createTemporarySystemFunction, createTemporaryTable, createTemporaryView, dropFunction, dropTemporaryFunction, dropTemporarySystemFunction, dropTemporaryTable, dropTemporaryView, executePlan, executeSql, 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, useModulesParser getParser()
Parser that provides methods for parsing a SQL string.Parser.CatalogManager getCatalogManager()
CatalogManager that deals with all catalog objects.OperationTreeBuilder getOperationTreeBuilder()
OperationTreeBuilder that can create QueryOperations.@Deprecated Table fromTableSource(org.apache.flink.table.sources.TableSource<?> source)
source - table source used as tableTableResultInternal executeInternal(List<ModifyOperation> operations)
operations - The operations to be executed.TableResultInternal executeInternal(Operation operation)
operation - The operation to be executed.String explainInternal(List<Operation> operations, ExplainDetail... extraDetails)
operations - The operations to be explained.extraDetails - The extra explain details which the explain result should include, e.g.
estimated cost, changelog mode for streamingvoid registerTableSourceInternal(String name, org.apache.flink.table.sources.TableSource<?> tableSource)
TableSource in this TableEnvironment's catalog.
Registered tables can be referenced in SQL queries.
Temporary objects can shadow permanent ones. If a permanent object in a given path exists, it will be inaccessible in the current session. To make the permanent object available again one can drop the corresponding temporary object.
name - The name under which the TableSource is registered.tableSource - The TableSource to register.void registerTableSinkInternal(String name, org.apache.flink.table.sinks.TableSink<?> configuredSink)
TableSink with already configured field names and field types
in this TableEnvironment's catalog. Registered sink tables can be referenced in SQL
DML statements.
Temporary objects can shadow permanent ones. If a permanent object in a given path exists, it will be inaccessible in the current session. To make the permanent object available again one can drop the corresponding temporary object.
name - The name under which the TableSink is registered.configuredSink - The configured TableSink to register.@Experimental CompiledPlan compilePlan(List<ModifyOperation> operations)
@Experimental TableResultInternal executePlan(InternalPlan plan)
@Experimental String explainPlan(InternalPlan compiledPlan, ExplainDetail... extraDetails)
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.