Class Streamer
- java.lang.Object
 - 
- com.ibm.fhir.database.utils.streams.Streamer
 
 
- 
public class Streamer extends Object
Simple implementation taking a JDBC ResultSet and rendering it using the Java 8 Streams API.
The JDBC API is really starting to show its age here 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStreamer.RowInner class representing each row of theResultSetas it flows down the stream. 
- 
Constructor Summary
Constructors Constructor Description Streamer() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stream<Streamer.Row>wrap(ResultSet rs)Wrap the JDBCResultSetas a stream object. 
 - 
 
- 
- 
Method Detail
- 
wrap
public Stream<Streamer.Row> wrap(ResultSet rs) throws SQLException
Wrap the JDBCResultSetas a stream object. Note that the stream has to be consumed within the boundaries of the statement execution- Parameters:
 rs-- Returns:
 - Throws:
 SQLException
 
 - 
 
 -