@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 |
executeCachedPlanInternal(CachedPlan cachedPlan)
Execute the given
CachedPlan and return the execution result. |
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) |
default 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 |
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.
|
String |
explainPlan(InternalPlan compiledPlan,
ExplainDetail... extraDetails) |
Table |
fromTableSource(TableSource<?> source)
Deprecated.
|
CatalogManager |
getCatalogManager()
Returns a
CatalogManager that deals with all catalog objects. |
OperationTreeBuilder |
getOperationTreeBuilder()
Returns a
OperationTreeBuilder that can create QueryOperation s. |
Parser |
getParser()
Return a
Parser that provides methods for parsing a SQL string. |
void |
registerTableSinkInternal(String name,
TableSink<?> configuredSink)
Registers an external
TableSink with already configured field names and field types
in this TableEnvironment 's catalog. |
void |
registerTableSourceInternal(String name,
TableSource<?> tableSource)
Registers an external
TableSource in this TableEnvironment 's catalog. |
compilePlanSql, create, create, createCatalog, createFunction, createFunction, createFunction, createFunction, createStatementSet, createTable, createTemporaryFunction, createTemporaryFunction, createTemporaryFunction, createTemporarySystemFunction, createTemporarySystemFunction, createTemporarySystemFunction, createTemporaryTable, createTemporaryView, dropFunction, dropTemporaryFunction, dropTemporarySystemFunction, dropTemporaryTable, dropTemporaryView, 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
Parser 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 QueryOperation
s.@Deprecated Table fromTableSource(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.default 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 streamingString explainInternal(List<Operation> operations, ExplainFormat format, ExplainDetail... extraDetails)
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 streamingvoid registerTableSourceInternal(String name, 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, 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.
TableResultInternal executeCachedPlanInternal(CachedPlan cachedPlan)
CachedPlan
and return the execution result.cachedPlan
- The CachedPlan to be executed.@Experimental CompiledPlan compilePlan(List<ModifyOperation> operations)
@Experimental TableResultInternal executePlan(InternalPlan plan)
@Experimental String explainPlan(InternalPlan compiledPlan, ExplainDetail... extraDetails)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.