code: private <T, U> U queryStreamWithNamedParams(
              String sql,
              SqlParameterSource sps,
              RowMapper<T> mapper,
              Function<? super Stream<T>, U> handleStream) {
          SQLExceptionTranslator excTranslator = jdbcTemplate.getExceptionTranslator();
          ResultSetExtractor<U> extractor
              = new StreamResultSetExtractor(sql, mapper, handleStream, excTranslator);
          return namedJdbcTemplate.query(sql, sps, extractor);
      }
docs: Executes a query for stream with named parameters.