@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 |
---|---|
TableResult |
executeInternal(List<ModifyOperation> operations)
Execute the given modify operations and return the execution result.
|
TableResult |
executeInternal(Operation operation)
Execute the given operation and return the execution result.
|
TableResult |
executeJsonPlan(String jsonPlan)
Execute the given json plan, and return the execution result.
|
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 |
explainJsonPlan(String jsonPlan,
ExplainDetail... extraDetails)
Returns the execution plan for the given json plan.
|
CatalogManager |
getCatalogManager()
Returns a
CatalogManager that deals with all catalog objects. |
String |
getJsonPlan(List<ModifyOperation> operations)
Get the json plan for the given
ModifyOperation s. |
String |
getJsonPlan(String stmt)
Get the json plan for the given statement.
|
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. |
create, create, createFunction, createFunction, createStatementSet, createTable, createTemporaryFunction, createTemporaryFunction, createTemporarySystemFunction, createTemporarySystemFunction, createTemporaryTable, createTemporaryView, dropFunction, dropTemporaryFunction, dropTemporarySystemFunction, dropTemporaryTable, dropTemporaryView, execute, executeSql, explain, explain, explain, explainSql, from, from, fromTableSource, fromValues, fromValues, fromValues, fromValues, fromValues, fromValues, getCatalog, getCompletionHints, getConfig, getCurrentCatalog, getCurrentDatabase, insertInto, insertInto, listCatalogs, listDatabases, listFullModules, listFunctions, listModules, listTables, listTemporaryTables, listTemporaryViews, listUserDefinedFunctions, listViews, loadModule, registerCatalog, registerFunction, registerTable, scan, sqlQuery, sqlUpdate, 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.TableResult executeInternal(List<ModifyOperation> operations)
operations
- The operations to be executed.TableResult 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, 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.
@Experimental String getJsonPlan(String stmt)
The statement can only be DML.
The json plan is the string json representation of an optimized ExecNode plan for the given statement. An ExecNode plan can be serialized to json plan, and a json plan can be deserialized to an ExecNode plan.
NOTES: This is an experimental feature now.
stmt
- The SQL statement to generate json plan.@Experimental String getJsonPlan(List<ModifyOperation> operations)
ModifyOperation
s. see getJsonPlan(String)
for more info about json plan.
NOTES: This is an experimental feature now.
operations
- the ModifyOperation
s to generate json plan.@Experimental String explainJsonPlan(String jsonPlan, ExplainDetail... extraDetails)
getJsonPlan(String)
.
NOTES: This is an experimental feature now.
jsonPlan
- The json plan to be explained.extraDetails
- The extra explain details which the explain result should include, e.g.
estimated cost, changelog mode for streaming@Experimental TableResult executeJsonPlan(String jsonPlan)
getJsonPlan(String)
.
NOTES: This is an experimental feature now.
jsonPlan
- The json plan to be executed.Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.