Skip to content

amarflybot/SpringBootPhoenix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring JdbcTemplate for Apache Phoenix with Java 8 Streams

The goals of the code are to offer the expressiveness of a Stream interface, without losing the resource management capabilities of JdbcTemplate or loading an entire result set into memory before processing it.

The code snippet below shows how the final implementation can be used.

In this case, the SQL statement itself could easily have done the filter expression, and could have done a DISTINCT select. But often the transformations to be done on an SQL query’s output are either difficult to do in SQL, or would require generation of moderately complex SQL on the fly.

The end result is a simple way to use the Java 8 Stream API on SQL results in Spring Framework.

Added Phoenix connection pooling support.

https://www.linkedin.com/pulse/simple-spring-micro-service-query-hive-using-mourya-rajala?articleId=8865920639508502242

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published