com.ziclix.python.sql.pipe.db
Class DBSink
- java.lang.Object
-
- com.ziclix.python.sql.pipe.db.BaseDB
-
- com.ziclix.python.sql.pipe.db.DBSink
-
-
Constructor Summary
Constructors Constructor and Description DBSink(PyConnection connection, java.lang.Class dataHandler, java.lang.String tableName, PyObject exclude, PyObject bindings, int batchsize)Constructor for handling the consumption of data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidend()Handles flushing any buffers and closes the cursor.voidrow(PyObject row)Handle the row.voidstart()Method start
-
-
-
Constructor Detail
-
DBSink
public DBSink(PyConnection connection, java.lang.Class dataHandler, java.lang.String tableName, PyObject exclude, PyObject bindings, int batchsize)
Constructor for handling the consumption of data.- Parameters:
connection- the database connectiondataHandler- a custom DataHandler for the cursor, can be NonetableName- the table to insert the dataexclude- the columns to be excluded from insertion on the destination, all if Nonebindings- the optional bindings for the destination, this allows morphing of types during the copybatchsize- the optional batchsize for the inserts
-
-
Method Detail
-
row
public void row(PyObject row)
Handle the row. Insert the data into the correct table and columns. No updates are done.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG