@PublicEvolving public interface StreamStatementSet extends 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 |
add(TablePipeline tablePipeline)
Adds a
TablePipeline . |
StreamStatementSet |
addInsert(String targetPath,
Table table)
Shorthand for
statementSet.add(table.insertInto(targetPath)) . |
StreamStatementSet |
addInsert(String targetPath,
Table table,
boolean overwrite)
Shorthand for
statementSet.add(table.insertInto(targetPath, overwrite)) . |
StreamStatementSet |
addInsert(TableDescriptor targetDescriptor,
Table table)
Shorthand for
statementSet.add(table.insertInto(targetDescriptor)) . |
StreamStatementSet |
addInsert(TableDescriptor targetDescriptor,
Table table,
boolean overwrite)
Shorthand for
statementSet.add(table.insertInto(targetDescriptor, overwrite)) . |
StreamStatementSet |
addInsertSql(String statement)
Adds an
INSERT INTO SQL statement. |
void |
attachAsDataStream()
Optimizes all statements as one entity and adds them as transformations to the underlying
StreamExecutionEnvironment . |
StreamStatementSet |
printExplain(ExplainDetail... extraDetails)
Like
Explainable.explain(ExplainDetail...) , but piping the result to System.out . |
compilePlan, execute
explain, explain
StreamStatementSet add(TablePipeline tablePipeline)
StatementSet
TablePipeline
.add
in interface StatementSet
StreamStatementSet addInsertSql(String statement)
StatementSet
INSERT INTO
SQL statement.addInsertSql
in interface StatementSet
StreamStatementSet addInsert(String targetPath, Table table)
StatementSet
statementSet.add(table.insertInto(targetPath))
.addInsert
in interface StatementSet
StatementSet.add(TablePipeline)
,
Table.insertInto(String)
StreamStatementSet addInsert(String targetPath, Table table, boolean overwrite)
StatementSet
statementSet.add(table.insertInto(targetPath, overwrite))
.addInsert
in interface StatementSet
StatementSet.add(TablePipeline)
,
Table.insertInto(String, boolean)
StreamStatementSet addInsert(TableDescriptor targetDescriptor, Table table)
StatementSet
statementSet.add(table.insertInto(targetDescriptor))
.addInsert
in interface StatementSet
StatementSet.add(TablePipeline)
,
Table.insertInto(TableDescriptor)
StreamStatementSet addInsert(TableDescriptor targetDescriptor, Table table, boolean overwrite)
StatementSet
statementSet.add(table.insertInto(targetDescriptor, overwrite))
.addInsert
in interface StatementSet
StatementSet.add(TablePipeline)
,
Table.insertInto(TableDescriptor, boolean)
void attachAsDataStream()
StreamExecutionEnvironment
.
Use StreamExecutionEnvironment.execute()
to execute them.
The added statements will be cleared after calling this method.
StreamStatementSet printExplain(ExplainDetail... extraDetails)
Explainable
Explainable.explain(ExplainDetail...)
, but piping the result to System.out
.printExplain
in interface Explainable<StatementSet>
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.