Package jdbc.stream

Class JdbcStream


  • public class JdbcStream
    extends java.lang.Object
    JdbcStream is a Stream wrapper on top of the JDBC ResultSet. This class provides utility methods to convert the ResultSet into a Stream of ResultSet which opens up the Java Stream API to JDBC.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.stream.Stream<java.sql.ResultSet> stream​(java.sql.ResultSet resultSet)
      Given a ResultSet, convert the ResultSet into a Stream
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • stream

        public static java.util.stream.Stream<java.sql.ResultSet> stream​(java.sql.ResultSet resultSet)
        Given a ResultSet, convert the ResultSet into a Stream
        Parameters:
        resultSet - The JDBC ResultSet after executing SQL query
        Returns:
        Stream of ResultSet