You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Xu Mingmin (JIRA)" <ji...@apache.org> on 2017/04/18 23:12:41 UTC

[jira] [Created] (BEAM-2010) expose programming interface

Xu Mingmin created BEAM-2010:
--------------------------------

             Summary: expose programming interface
                 Key: BEAM-2010
                 URL: https://issues.apache.org/jira/browse/BEAM-2010
             Project: Beam
          Issue Type: New Feature
          Components: dsl-sql
            Reporter: Xu Mingmin
            Assignee: Xu Mingmin


Expose programming interfaces to use BeamSQL. With these APIs, developers can inject SQL in their code, to help create a pipeline from SQL statements. A proposed use case looks like:
{code}
BeamSQLEnvironment sqlEnv = BeamSQLEnvironment.create(options);

sqlEnv.addAsSource(BeamSqlTable table);
//...
sqlEnv.addAsSink(BeamSqlTable table);
//...

Pipeline pipeline = sqlEnv.explainPipeline(String sqlStatement);

pipeline.run().waitUntilFinish();
{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)