public class JdbcConsumer extends Object implements TableConsumer
Constructor and Description |
---|
JdbcConsumer(String url,
Environment env,
WriteMode mode)
Constructs a new consumer from a location and an execution environment
which will be used for JDBC authentication.
|
JdbcConsumer(String url,
JDBCHandler handler,
WriteMode mode)
Constructs a new consumer from a location and a JDBC handler.
|
public JdbcConsumer(String url, JDBCHandler handler, WriteMode mode)
url
- destination (jdbc:) URL for tablehandler
- JDBC handlermode
- write modepublic JdbcConsumer(String url, Environment env, WriteMode mode)
url
- destination (jdbc:) URL for tableenv
- execution environmentmode
- write modepublic void consume(StarTable table) throws IOException
TableConsumer
consume
in interface TableConsumer
table
- table to consumeIOException
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.