Skip to content

Instantly share code, notes, and snippets.

@markusdybeck
Created September 16, 2020 07:13
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/35490b28f322b55ad97c35221fa9e855 to your computer and use it in GitHub Desktop.
Save markusdybeck/35490b28f322b55ad97c35221fa9e855 to your computer and use it in GitHub Desktop.
Two sliced es iterators
// Slice id 0, max slices 2
Iterator<Collection<Foo>> fooIterator1 = new EsIterator<>(index, query, batchSize, Foo.class, 0, 2);
// Slice id 1, max slices 2
Iterator<Collection<Foo>> fooIterator2 = new EsIterator<>(index, query, batchSize, Foo.class, 1, 2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment