Class StatementSetImpl<E extends TableEnvironmentInternal>
java.lang.Object
org.apache.flink.table.api.internal.StatementSetImpl<E>
- All Implemented Interfaces:
Compilable,Executable,Explainable<StatementSet>,StatementSet
@Internal
public class StatementSetImpl<E extends TableEnvironmentInternal>
extends Object
implements StatementSet
Implementation for
StatementSet.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(TablePipeline tablePipeline) Adds aTablePipeline.Shorthand forstatementSet.add(table.insertInto(targetPath)).Shorthand forstatementSet.add(table.insertInto(targetPath, overwrite)).addInsert(TableDescriptor targetDescriptor, Table table) Shorthand forstatementSet.add(table.insertInto(targetDescriptor)).addInsert(TableDescriptor targetDescriptor, Table table, boolean overwrite) Shorthand forstatementSet.add(table.insertInto(targetDescriptor, overwrite)).addInsertSql(String statement) Adds anINSERT INTOSQL statement.Compiles this object into aCompiledPlanthat can be executed as one job.execute()Executes this object.explain(ExplainFormat format, ExplainDetail... extraDetails) Returns the AST of this object and the execution plan to compute the result of the given statement.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.table.api.Explainable
explain, printExplain
-
Field Details
-
tableEnvironment
-
operations
-
-
Constructor Details
-
StatementSetImpl
-
-
Method Details
-
getOperations
-
add
Description copied from interface:StatementSetAdds aTablePipeline.- Specified by:
addin interfaceStatementSet
-
addInsertSql
Description copied from interface:StatementSetAdds anINSERT INTOSQL statement.- Specified by:
addInsertSqlin interfaceStatementSet
-
addInsert
Description copied from interface:StatementSetShorthand forstatementSet.add(table.insertInto(targetPath)).- Specified by:
addInsertin interfaceStatementSet- See Also:
-
addInsert
Description copied from interface:StatementSetShorthand forstatementSet.add(table.insertInto(targetPath, overwrite)).- Specified by:
addInsertin interfaceStatementSet- See Also:
-
addInsert
Description copied from interface:StatementSetShorthand forstatementSet.add(table.insertInto(targetDescriptor)).- Specified by:
addInsertin interfaceStatementSet- See Also:
-
addInsert
Description copied from interface:StatementSetShorthand forstatementSet.add(table.insertInto(targetDescriptor, overwrite)).- Specified by:
addInsertin interfaceStatementSet- See Also:
-
explain
Description copied from interface:ExplainableReturns the AST of this object and the execution plan to compute the result of the given statement.- Specified by:
explainin interfaceExplainable<E extends TableEnvironmentInternal>- Parameters:
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 streaming- Returns:
- AST and the execution plan.
-
execute
Description copied from interface:StatementSetExecutes this object.By default, all DML operations are executed asynchronously. Use
TableResult.await()orTableResult.getJobClient()to monitor the execution. SetTableConfigOptions.TABLE_DML_SYNCfor always synchronous execution.This method executes all statements as one job.
The added statements will be cleared after calling this method.
- Specified by:
executein interfaceExecutable- Specified by:
executein interfaceStatementSet
-
compilePlan
Description copied from interface:StatementSetCompiles this object into aCompiledPlanthat 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
CompiledPlanand the website documentation for more information.Note: The compiled plan feature is not supported in batch mode.
This method compiles all statements into a
CompiledPlanthat can be executed as one job.- Specified by:
compilePlanin interfaceCompilable- Specified by:
compilePlanin interfaceStatementSet
-