@Override public Cursor<Entry<byte[], byte[]>> hScan(byte[] key, ScanOptions options) { Assert.notNull(key, "Key must not be null!"); return new ScanCursor<Entry<byte[], byte[]>>(options) { @Override protected ScanIteration<Entry<byte[], byte[]>> doScan(long cursorId, ScanOptions options) { ScanParams params = JedisConverters.toScanParams(options); redis.clients.jedis.ScanResult<Map.Entry<byte[], byte[]>> result = connection.getCluster().hscan(key, JedisConverters.toBytes(cursorId), params); return new ScanIteration<>(Long.valueOf(result.getCursor()), result.getResult()); } }.open(); }
@Override public Cursor<Entry<byte[], byte[]>> hScan(byte[] key, ScanOptions options) { Assert.notNull(key, "Key must not be null!"); return new ScanCursor<Entry<byte[], byte[]>>(options) { @Override protected ScanIteration<Entry<byte[], byte[]>> doScan(long cursorId, ScanOptions options) { ScanParams params = JedisConverters.toScanParams(options); redis.clients.jedis.ScanResult<Map.Entry<byte[], byte[]>> result = connection.getCluster().hscan(key, JedisConverters.toBytes(cursorId), params); return new ScanIteration<>(Long.valueOf(result.getStringCursor()), result.getResult()); } }.open(); }
@Override public Cursor<Entry<byte[], byte[]>> hScan(byte[] key, ScanOptions options) { Assert.notNull(key, "Key must not be null!"); return new ScanCursor<Entry<byte[], byte[]>>(options) { @Override protected ScanIteration<Entry<byte[], byte[]>> doScan(long cursorId, ScanOptions options) { ScanParams params = JedisConverters.toScanParams(options); redis.clients.jedis.ScanResult<Map.Entry<byte[], byte[]>> result = connection.getCluster().hscan(key, JedisConverters.toBytes(cursorId), params); return new ScanIteration<>(Long.valueOf(result.getStringCursor()), result.getResult()); } }.open(); }