Class StreamStatementSetImpl
- java.lang.Object
-
- org.apache.flink.table.api.internal.StatementSetImpl<StreamTableEnvironmentImpl>
-
- org.apache.flink.table.api.bridge.java.internal.StreamStatementSetImpl
-
- All Implemented Interfaces:
StreamStatementSet
,Compilable
,Executable
,Explainable<StatementSet>
,StatementSet
@Internal public class StreamStatementSetImpl extends StatementSetImpl<StreamTableEnvironmentImpl> implements StreamStatementSet
Implementation forStreamStatementSet
.
-
-
Field Summary
-
Fields inherited from class org.apache.flink.table.api.internal.StatementSetImpl
operations, tableEnvironment
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
StreamStatementSetImpl(StreamTableEnvironmentImpl tableEnvironment)
-
Method Summary
All Methods Instance Methods Concrete 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 class org.apache.flink.table.api.internal.StatementSetImpl
compilePlan, execute, explain, getOperations
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.table.api.Explainable
explain, explain
-
Methods inherited from interface org.apache.flink.table.api.StatementSet
compilePlan, execute
-
-
-
-
Constructor Detail
-
StreamStatementSetImpl
protected StreamStatementSetImpl(StreamTableEnvironmentImpl tableEnvironment)
-
-
Method Detail
-
add
public StreamStatementSet add(TablePipeline tablePipeline)
Description copied from interface:StatementSet
Adds aTablePipeline
.- Specified by:
add
in interfaceStatementSet
- Specified by:
add
in interfaceStreamStatementSet
- Overrides:
add
in classStatementSetImpl<StreamTableEnvironmentImpl>
-
addInsertSql
public StreamStatementSet addInsertSql(String statement)
Description copied from interface:StatementSet
Adds anINSERT INTO
SQL statement.- Specified by:
addInsertSql
in interfaceStatementSet
- Specified by:
addInsertSql
in interfaceStreamStatementSet
- Overrides:
addInsertSql
in classStatementSetImpl<StreamTableEnvironmentImpl>
-
addInsert
public StreamStatementSet addInsert(String targetPath, Table table)
Description copied from interface:StatementSet
Shorthand forstatementSet.add(table.insertInto(targetPath))
.- Specified by:
addInsert
in interfaceStatementSet
- Specified by:
addInsert
in interfaceStreamStatementSet
- Overrides:
addInsert
in classStatementSetImpl<StreamTableEnvironmentImpl>
- See Also:
StatementSet.add(TablePipeline)
,Table.insertInto(String)
-
addInsert
public 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
- Specified by:
addInsert
in interfaceStreamStatementSet
- Overrides:
addInsert
in classStatementSetImpl<StreamTableEnvironmentImpl>
- See Also:
StatementSet.add(TablePipeline)
,Table.insertInto(String, boolean)
-
addInsert
public StreamStatementSet addInsert(TableDescriptor targetDescriptor, Table table)
Description copied from interface:StatementSet
Shorthand forstatementSet.add(table.insertInto(targetDescriptor))
.- Specified by:
addInsert
in interfaceStatementSet
- Specified by:
addInsert
in interfaceStreamStatementSet
- Overrides:
addInsert
in classStatementSetImpl<StreamTableEnvironmentImpl>
- See Also:
StatementSet.add(TablePipeline)
,Table.insertInto(TableDescriptor)
-
addInsert
public 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
- Specified by:
addInsert
in interfaceStreamStatementSet
- Overrides:
addInsert
in classStatementSetImpl<StreamTableEnvironmentImpl>
- See Also:
StatementSet.add(TablePipeline)
,Table.insertInto(TableDescriptor, boolean)
-
printExplain
public StreamStatementSet printExplain(ExplainDetail... extraDetails)
Description copied from interface:Explainable
LikeExplainable.explain(ExplainDetail...)
, but piping the result toSystem.out
.- Specified by:
printExplain
in interfaceExplainable<StatementSet>
- Specified by:
printExplain
in interfaceStreamStatementSet
-
attachAsDataStream
public void attachAsDataStream()
Description copied from interface:StreamStatementSet
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.
- Specified by:
attachAsDataStream
in interfaceStreamStatementSet
-
-