Interface StreamStatementSet
-
- All Superinterfaces:
Compilable
,Executable
,Explainable<StatementSet>
,StatementSet
- All Known Implementing Classes:
StreamStatementSetImpl
@PublicEvolving public interface StreamStatementSet extends StatementSet
AStatementSet
that integrates with the Java-specificDataStream
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 underlyingStreamExecutionEnvironment
.The added statements will be cleared when calling the
StatementSet.execute()
orattachAsDataStream()
method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StreamStatementSet
add(TablePipeline tablePipeline)
Adds aTablePipeline
.StreamStatementSet
addInsert(String targetPath, Table table)
Shorthand forstatementSet.add(table.insertInto(targetPath))
.StreamStatementSet
addInsert(String targetPath, Table table, boolean overwrite)
Shorthand forstatementSet.add(table.insertInto(targetPath, overwrite))
.StreamStatementSet
addInsert(TableDescriptor targetDescriptor, Table table)
Shorthand forstatementSet.add(table.insertInto(targetDescriptor))
.StreamStatementSet
addInsert(TableDescriptor targetDescriptor, Table table, boolean overwrite)
Shorthand forstatementSet.add(table.insertInto(targetDescriptor, overwrite))
.StreamStatementSet
addInsertSql(String statement)
Adds anINSERT INTO
SQL statement.void
attachAsDataStream()
Optimizes all statements as one entity and adds them as transformations to the underlyingStreamExecutionEnvironment
.StreamStatementSet
printExplain(ExplainDetail... extraDetails)
LikeExplainable.explain(ExplainDetail...)
, but piping the result toSystem.out
.-
Methods inherited from interface org.apache.flink.table.api.Explainable
explain, explain
-
Methods inherited from interface org.apache.flink.table.api.StatementSet
compilePlan, execute
-
-
-
-
Method Detail
-
add
StreamStatementSet add(TablePipeline tablePipeline)
Description copied from interface:StatementSet
Adds aTablePipeline
.- Specified by:
add
in interfaceStatementSet
-
addInsertSql
StreamStatementSet addInsertSql(String statement)
Description copied from interface:StatementSet
Adds anINSERT INTO
SQL statement.- Specified by:
addInsertSql
in interfaceStatementSet
-
addInsert
StreamStatementSet addInsert(String targetPath, Table table)
Description copied from interface:StatementSet
Shorthand forstatementSet.add(table.insertInto(targetPath))
.- Specified by:
addInsert
in interfaceStatementSet
- See Also:
StatementSet.add(TablePipeline)
,Table.insertInto(String)
-
addInsert
StreamStatementSet addInsert(String targetPath, Table table, boolean overwrite)
Description copied from interface:StatementSet
Shorthand forstatementSet.add(table.insertInto(targetPath, overwrite))
.- Specified by:
addInsert
in interfaceStatementSet
- See Also:
StatementSet.add(TablePipeline)
,Table.insertInto(String, boolean)
-
addInsert
StreamStatementSet addInsert(TableDescriptor targetDescriptor, Table table)
Description copied from interface:StatementSet
Shorthand forstatementSet.add(table.insertInto(targetDescriptor))
.- Specified by:
addInsert
in interfaceStatementSet
- See Also:
StatementSet.add(TablePipeline)
,Table.insertInto(TableDescriptor)
-
addInsert
StreamStatementSet addInsert(TableDescriptor targetDescriptor, Table table, boolean overwrite)
Description copied from interface:StatementSet
Shorthand forstatementSet.add(table.insertInto(targetDescriptor, overwrite))
.- Specified by:
addInsert
in interfaceStatementSet
- See Also:
StatementSet.add(TablePipeline)
,Table.insertInto(TableDescriptor, boolean)
-
attachAsDataStream
void attachAsDataStream()
Optimizes all statements as one entity and adds them as transformations to the underlyingStreamExecutionEnvironment
.Use
StreamExecutionEnvironment.execute()
to execute them.The added statements will be cleared after calling this method.
-
printExplain
StreamStatementSet printExplain(ExplainDetail... extraDetails)
Description copied from interface:Explainable
LikeExplainable.explain(ExplainDetail...)
, but piping the result toSystem.out
.- Specified by:
printExplain
in interfaceExplainable<StatementSet>
-
-