Skip to content

Instantly share code, notes, and snippets.

@codebje
Created August 3, 2015 04:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save codebje/d9c852aff15a42f6017c to your computer and use it in GitHub Desktop.
Save codebje/d9c852aff15a42f6017c to your computer and use it in GitHub Desktop.
Set<String> results = jdbcStream.streamQuery("SELECT * FROM test_data", stream -> stream
.map(row -> row.getString("entry"))
.filter(s -> Character.isAlphabetic(s.charAt(0)))
.collect(Collectors.toSet()));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment