Created
September 16, 2020 09:18
-
-
Save markusdybeck/b825bd9b627c8ed96f3fb4050e9cd80f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
threadPool.submit() -> { | |
Spliterator<T> spliterator = EsSpliterator.from(index, query, batchSize, documentClass, slices) | |
StreamSupport.stream(spliterator, true) | |
.forEach(batch -> handle(batch)); | |
}.get(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment