@Internal public class StatementSetImpl<E extends TableEnvironmentInternal> extends Object implements StatementSet
StatementSet.| 限定符和类型 | 字段和说明 |
|---|---|
protected List<ModifyOperation> |
operations |
protected E |
tableEnvironment |
| 限定符 | 构造器和说明 |
|---|---|
protected |
StatementSetImpl(E tableEnvironment) |
| 限定符和类型 | 方法和说明 |
|---|---|
StatementSet |
add(TablePipeline tablePipeline)
Adds a
TablePipeline. |
StatementSet |
addInsert(String targetPath,
Table table)
Shorthand for
statementSet.add(table.insertInto(targetPath)). |
StatementSet |
addInsert(String targetPath,
Table table,
boolean overwrite)
Shorthand for
statementSet.add(table.insertInto(targetPath, overwrite)). |
StatementSet |
addInsert(TableDescriptor targetDescriptor,
Table table)
Shorthand for
statementSet.add(table.insertInto(targetDescriptor)). |
StatementSet |
addInsert(TableDescriptor targetDescriptor,
Table table,
boolean overwrite)
Shorthand for
statementSet.add(table.insertInto(targetDescriptor, overwrite)). |
StatementSet |
addInsertSql(String statement)
Adds an
INSERT INTO SQL statement. |
CompiledPlan |
compilePlan()
Compiles this object into a
CompiledPlan that can be executed as one job. |
TableResult |
execute()
Executes this object.
|
String |
explain(ExplainFormat format,
ExplainDetail... extraDetails)
Returns the AST of this object and the execution plan to compute the result of the given
statement.
|
List<ModifyOperation> |
getOperations() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexplain, printExplainprotected final E extends TableEnvironmentInternal tableEnvironment
protected final List<ModifyOperation> operations
protected StatementSetImpl(E tableEnvironment)
@VisibleForTesting public List<ModifyOperation> getOperations()
public StatementSet add(TablePipeline tablePipeline)
StatementSetTablePipeline.add 在接口中 StatementSetpublic StatementSet addInsertSql(String statement)
StatementSetINSERT INTO SQL statement.addInsertSql 在接口中 StatementSetpublic StatementSet addInsert(String targetPath, Table table)
StatementSetstatementSet.add(table.insertInto(targetPath)).addInsert 在接口中 StatementSetStatementSet.add(TablePipeline),
Table.insertInto(String)public StatementSet addInsert(String targetPath, Table table, boolean overwrite)
StatementSetstatementSet.add(table.insertInto(targetPath, overwrite)).public StatementSet addInsert(TableDescriptor targetDescriptor, Table table)
StatementSetstatementSet.add(table.insertInto(targetDescriptor)).public StatementSet addInsert(TableDescriptor targetDescriptor, Table table, boolean overwrite)
StatementSetstatementSet.add(table.insertInto(targetDescriptor, overwrite)).public String explain(ExplainFormat format, ExplainDetail... extraDetails)
Explainableexplain 在接口中 Explainable<StatementSet>format - The output format of explained planextraDetails - The extra explain details which the result of this method should include,
e.g. estimated cost, changelog mode for streamingpublic TableResult execute()
StatementSetBy default, all DML operations are executed asynchronously. Use TableResult.await() or TableResult.getJobClient() to monitor the execution. Set
TableConfigOptions.TABLE_DML_SYNC for always synchronous execution.
This method executes all statements as one job.
The added statements will be cleared after calling this method.
execute 在接口中 Executableexecute 在接口中 StatementSet@Experimental public CompiledPlan compilePlan()
StatementSetCompiledPlan that can be executed as one job.
Compiled plans can be persisted and reloaded across Flink versions. They describe static
pipelines to ensure backwards compatibility and enable stateful streaming job upgrades. See
CompiledPlan and the website documentation for more information.
Note: The compiled plan feature is not supported in batch mode.
This method compiles all statements into a CompiledPlan that can be executed as
one job.
compilePlan 在接口中 CompilablecompilePlan 在接口中 StatementSetCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.