Skip to content

Instantly share code, notes, and snippets.

@markusdybeck
Created September 16, 2020 07:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markusdybeck/682941936d79374afeaf8711e5bdca89 to your computer and use it in GitHub Desktop.
Save markusdybeck/682941936d79374afeaf8711e5bdca89 to your computer and use it in GitHub Desktop.
Spliterator<Collection<Foo>> fooSpliterator = EsSpliterator.from(index, query, batchSize, Foo.class, 2);
StreamSupport.stream(fooSpliterator, true)
.forEach(fooBatch -> handle(fooBatch));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment