Documentation of 'com.ziclix.python.sql.pipe.csv.CSVSink' Java class
CSVSink
com.ziclix.python.sql.pipe.csv

Class CSVSink

  • All Implemented Interfaces:
    Sink


    public class CSVSink
    extends java.lang.Object
    implements Sink
    The CSVSink writes data out in a Comma Seperated Format.
    • 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
      void end()
      Method end
      void row(PyObject row)
      Handle the data callback and write the row out.
      void start()
      Method start
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 written
        converters - an indexed dictionary of callable objects used for converting objects to strings
    • Method Detail

      • row

        public void row(PyObject row)
        Handle the data callback and write the row out.
        Specified by:
        row in interface Sink
      • start

        public void start()
        Method start
        Specified by:
        start in interface Sink
      • end

        public void end()
        Method end
        Specified by:
        end in interface Sink

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.