public class JDBCStream extends TupleStream implements Expressible
| Modifier and Type | Field and Description |
|---|---|
protected StreamContext |
streamContext |
| Constructor and Description |
|---|
JDBCStream(StreamExpression expression,
StreamFactory factory) |
JDBCStream(String connectionUrl,
String sqlQuery,
StreamComparator definedSort) |
JDBCStream(String connectionUrl,
String sqlQuery,
StreamComparator definedSort,
Properties connectionProperties,
String driverClassName) |
| Modifier and Type | Method and Description |
|---|---|
List<TupleStream> |
children() |
void |
close()
Closes the JDBCStream
|
StreamComparator |
getStreamSort() |
void |
open()
Opens the JDBCStream
|
Tuple |
read() |
void |
setStreamContext(StreamContext context) |
StreamExpressionParameter |
toExpression(StreamFactory factory) |
getCost, writeStreamClose, writeStreamOpenprotected transient StreamContext streamContext
public JDBCStream(String connectionUrl, String sqlQuery, StreamComparator definedSort) throws IOException
IOExceptionpublic JDBCStream(String connectionUrl, String sqlQuery, StreamComparator definedSort, Properties connectionProperties, String driverClassName) throws IOException
IOExceptionpublic JDBCStream(StreamExpression expression, StreamFactory factory) throws IOException
IOExceptionpublic void setStreamContext(StreamContext context)
setStreamContext in class TupleStreampublic void open()
throws IOException
open in class TupleStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class TupleStreamIOExceptionpublic Tuple read() throws IOException
read in class TupleStreamIOExceptionpublic StreamExpressionParameter toExpression(StreamFactory factory) throws IOException
toExpression in interface ExpressibleIOExceptionpublic List<TupleStream> children()
children in class TupleStreampublic StreamComparator getStreamSort()
getStreamSort in class TupleStreamCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.