-
-
Save wburns/140e288f27ce7a4b04aec8ee65d9f819 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
CloseableIterator<Entry<Object, Object>> iter = retrieveEntries("org.infinispan.server.hotrod.HotRodServer$ToEmptyBytesKeyValueFilterConverter", 110); | |
try (Stream<Entry<Object, Object>> stream = Closeables.stream(iter, false, Long.MAX_VALUE, Spliterator.NONNULL)) { | |
List<Object> keys = stream.skip(100).limit(10).map(Entry::getKey).collect(Collectors.toList()); | |
... do stuff with keys ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment