com.ziclix.python.sql.pipe.csv
Class CSVSink
- java.lang.Object
-
- com.ziclix.python.sql.pipe.csv.CSVSink
-
-
Constructor Summary
Constructors Constructor and Description CSVSink(java.io.PrintWriter writer)All data will be written to the given PrintWriter.CSVSink(java.io.PrintWriter writer, PyObject converters)All data will be written to the given PrintWriter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidend()Method endvoidrow(PyObject row)Handle the data callback and write the row out.voidstart()Method start
-
-
-
Constructor Detail
-
CSVSink
public CSVSink(java.io.PrintWriter writer)
All data will be written to the given PrintWriter.- Parameters:
writer- the PrintWriter to which data will be written
-
CSVSink
public CSVSink(java.io.PrintWriter writer, PyObject converters)All data will be written to the given PrintWriter. If the converters param is not None, then an attempt will be made to convert the object using the given converter.- Parameters:
writer- the PrintWriter to which data will be writtenconverters- an indexed dictionary of callable objects used for converting objects to strings
-
-
DataMelt 3.0 © DataMelt by jWork.ORG