@PublicEvolving
public interface StreamStatementSet
extends org.apache.flink.table.api.StatementSet
StatementSet that integrates with the Java-specific DataStream API.
It accepts pipelines defined by DML statements or Table objects. The planner can
optimize all added statements together and then either submit them as one job or attach them to
the underlying StreamExecutionEnvironment.
The added statements will be cleared when calling the StatementSet.execute() or attachAsDataStream() method.
| Modifier and Type | Method and Description |
|---|---|
StreamStatementSet |
addInsert(String targetPath,
org.apache.flink.table.api.Table table) |
StreamStatementSet |
addInsert(String targetPath,
org.apache.flink.table.api.Table table,
boolean overwrite) |
StreamStatementSet |
addInsert(org.apache.flink.table.api.TableDescriptor targetDescriptor,
org.apache.flink.table.api.Table table) |
StreamStatementSet |
addInsert(org.apache.flink.table.api.TableDescriptor targetDescriptor,
org.apache.flink.table.api.Table table,
boolean overwrite) |
StreamStatementSet |
addInsertSql(String statement) |
void |
attachAsDataStream()
Optimizes all statements as one entity and adds them as transformations to the underlying
StreamExecutionEnvironment. |
StreamStatementSet addInsertSql(String statement)
addInsertSql in interface org.apache.flink.table.api.StatementSetStreamStatementSet addInsert(String targetPath, org.apache.flink.table.api.Table table)
addInsert in interface org.apache.flink.table.api.StatementSetStreamStatementSet addInsert(String targetPath, org.apache.flink.table.api.Table table, boolean overwrite)
addInsert in interface org.apache.flink.table.api.StatementSetStreamStatementSet addInsert(org.apache.flink.table.api.TableDescriptor targetDescriptor, org.apache.flink.table.api.Table table)
addInsert in interface org.apache.flink.table.api.StatementSetStreamStatementSet addInsert(org.apache.flink.table.api.TableDescriptor targetDescriptor, org.apache.flink.table.api.Table table, boolean overwrite)
addInsert in interface org.apache.flink.table.api.StatementSetvoid attachAsDataStream()
StreamExecutionEnvironment.
Use StreamExecutionEnvironment.execute() to execute them.
The added statements will be cleared after calling this method.
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.