In a good tradition of answering my own questions, here's what I learned:
key = "THEKEY"; ScanParams scanParams = new ScanParams().count(100); String cur = redis.clients.jedis.ScanParams.SCAN_POINTER_START; boolean cycleIsFinished = false; while(!cycleIsFinished){ ScanResult<Entry<String, String>> scanResult = jedis.hscan(key, cur, scanParams); List<Entry<String, String>> result = scanResult.getResult();
The important part is that cur is a String variable and is "0" if validation is complete.
Using ScanParams, I was able to determine the approximate size of each fragment to get a hash. Approximate, because the hash may change during the scan, so it may be that the item is returned twice in a loop.
luksch
source share