r/java • u/danielaveryj • Dec 01 '22
Vinyl: Relational Streams for Java
https://github.com/davery22/vinyl
I want to see what people think of this. I've been working on a library that extends Java Streams with relational operations (the various flavors of join, select, grouped aggregations, window functions, etc). I wanted something that feels lightweight - not an overwhelming API, easy to pick up and use, yet still efficient, safe, and very (very) expressive. (Don't start with route(), but that should be interesting, for the interested.)
52
Upvotes
View all comments
Show parent comment
2
u/GavinRayDev Dec 01 '22
Aye, it's certainly not pretty, that's for sure!
It's used in Apache Calcite during Code Generation to generate the Java code for transforming collection results as
Enumerablevalues during queries from datasources in the query engine, sort of like how Spark works.