Package org.apache.flink.api.java.record.io.jdbc

Examples of org.apache.flink.api.java.record.io.jdbc.JDBCOutputFormat


            "org.apache.derby.jdbc.EmbeddedDriver",
            "jdbc:derby:memory:ebookshop",
            "select * from books"),
        "Data Source");

    GenericDataSink sink = new GenericDataSink(new JDBCOutputFormat(), "Data Output");
    JDBCOutputFormat.configureOutputFormat(sink)
        .setDriver("org.apache.derby.jdbc.EmbeddedDriver")
        .setUrl("jdbc:derby:memory:ebookshop")
        .setQuery("insert into newbooks (id,title,author,price,qty) values (?,?,?,?,?)")
        .setClass(IntValue.class)
View Full Code Here

TOP

Related Classes of org.apache.flink.api.java.record.io.jdbc.JDBCOutputFormat

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.