| SQL | Equivalente interfaz stream |
|---|---|
| from | stream() |
| select | map() |
| where | filter() (antes de un collecting) |
| order by | sorted() |
| distinct | distinct() |
| having | filter() (después de un collecting) |
| join | flatMap() |
| union | concat().distinct() |
| offset | skip() |
| limit | limit() |
| group by | collect(groupingBy()) |
| count | count() |
En el siguiente enlace podrás encontrar más ejemplos.
Fuente: https://windoctor7.github.io/API-Stream-Java8.html
No hay comentarios:
Publicar un comentario