Documentation of 'com.ziclix.python.sql.pipe.Pipe' Java class
Pipe
com.ziclix.python.sql.pipe

Class Pipe



  • public class Pipe
    extends java.lang.Object
    Manager for a Sink and Source. The Pipe creates a Queue through which the Source can feed data to the Sink. Both Sink and Source run in their own thread and can are completely independent of the other. When the Source pushes None onto the Queue, the piping is stopped and the Sink finishes processing all the remaining data. This class is especially useful for loading/copying data from one database or table to another.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Pipe()
      Default empty constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      PyObject pipe(Source source, Sink sink)
      Start the processing of the Source to the Sink.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Pipe

        public Pipe()
        Default empty constructor.
    • Method Detail

      • pipe

        public PyObject pipe(Source source,
                             Sink sink)
        Start the processing of the Source to the Sink.
        Parameters:
        source - the data generator
        sink - the consumer of the data
        Returns:
        the number of rows seen (this includes the header row)

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.