-
Notifications
You must be signed in to change notification settings - Fork 227
Expand file tree
/
Copy pathSink.java
More file actions
41 lines (36 loc) · 1016 Bytes
/
Sink.java
File metadata and controls
41 lines (36 loc) · 1016 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* Jython Database Specification API 2.0
*
*
* Copyright (c) 2001 brian zimmer <bzimmer@ziclix.com>
*
*/
package com.ziclix.python.sql.pipe;
import org.python.core.PyObject;
/**
* A Sink acts as a data consumer. The Pipe is responsible for pushing data
* to the Sink as generated by the Source.
*
* @author brian zimmer
*/
public interface Sink {
/**
* Invoked at the start of the data pipelining session.
*/
public void start();
/**
* Invoked for each row of data. In general, the first row of data will
* consist of header information in the format:<br>
* [(colName, colType), ...]
* and in the format:<br>
* (colData, colData, ...)
* for all other data.
*/
public void row(PyObject row);
/**
* Invoked at the end of the data pipelining session. This is useful for
* flushing any buffers or handling any cleanup. This method is guaranteed
* to be called.
*/
public void end();
}