redis.clients.jedis.Jedis.zscan()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(5.9k)|赞(0)|评价(0)|浏览(225)

本文整理了Java中redis.clients.jedis.Jedis.zscan()方法的一些代码示例,展示了Jedis.zscan()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Jedis.zscan()方法的具体详情如下:
包路径:redis.clients.jedis.Jedis
类名称:Jedis
方法名:zscan

Jedis.zscan介绍

暂无

代码示例

代码示例来源:origin: sohutv/cachecloud

@Override
 public ScanResult<Tuple> execute(Jedis connection) {
  return connection.zscan(key, cursor);
 }
}.run(key);

代码示例来源:origin: sohutv/cachecloud

@Override
public ScanResult<Tuple> zscan(String key, String cursor, ScanParams params) {
 Jedis j = getShard(key);
 return j.zscan(key, cursor, params);
}

代码示例来源:origin: sohutv/cachecloud

@Override
public ScanResult<Tuple> zscan(String key, final String cursor) {
 Jedis j = getShard(key);
 return j.zscan(key, cursor);
}

代码示例来源:origin: sohutv/cachecloud

@Override
public ScanResult<Tuple> zscan(final String key, final String cursor) {
 return zscan(key, cursor, new ScanParams());
}

代码示例来源:origin: Netflix/conductor

@Override
@Deprecated
public ScanResult<Tuple> zscan(String key, int cursor) {
 Jedis jedis = null;
  try {
   jedis = jedisPool.getResource();
   return jedis.zscan(key, cursor);
  } finally {
   if (jedis != null)
    jedis.close();
  }
}

代码示例来源:origin: Netflix/conductor

@Override
public ScanResult<Tuple> zscan(String key, String cursor, ScanParams params) {
 Jedis jedis = null;
  try {
   jedis = jedisPool.getResource();
   return jedis.zscan(key, cursor, params);
  } finally {
   if (jedis != null)
    jedis.close();
  }
}

代码示例来源:origin: Netflix/conductor

@Override
public ScanResult<Tuple> zscan(String key, String cursor) {
 Jedis jedis = null;
  try {
   jedis = jedisPool.getResource();
   return jedis.zscan(key, cursor);
  } finally {
   if (jedis != null)
    jedis.close();
  }
}

代码示例来源:origin: spring-projects/spring-data-redis

@Override
protected ScanIteration<Tuple> doScan(byte[] key, long cursorId, ScanOptions options) {
  if (isQueueing() || isPipelined()) {
    throw new UnsupportedOperationException("'ZSCAN' cannot be called in pipeline / transaction mode.");
  }
  ScanParams params = JedisConverters.toScanParams(options);
  ScanResult<redis.clients.jedis.Tuple> result = connection.getJedis().zscan(key,
      JedisConverters.toBytes(cursorId), params);
  return new ScanIteration<>(Long.valueOf(result.getCursor()),
      JedisConverters.tuplesToTuples().convert(result.getResult()));
}

代码示例来源:origin: io.leopard/leopard-redis

@SuppressWarnings("deprecation")
@Override
public ScanResult<Tuple> zscan(String key, int cursor, ScanParams params) {
  return jedis.zscan(key, cursor, params);
}

代码示例来源:origin: io.leopard/leopard-redis

@SuppressWarnings("deprecation")
@Override
public ScanResult<Tuple> zscan(String key, int cursor) {
  return jedis.zscan(key, cursor);
}

代码示例来源:origin: apache/servicemix-bundles

@Override
public ScanResult<Tuple> zscan(final byte[] key, final byte[] cursor, final ScanParams params) {
 Jedis j = getShard(key);
 return j.zscan(key, cursor, params);
}

代码示例来源:origin: com.netflix.spinnaker.kork/kork-jedis

@Override
public ScanResult<Tuple> zscan(String key, String cursor, ScanParams params) {
 String command = "zscan";
 return instrumented(command, () -> delegated.zscan(key, cursor, params));
}

代码示例来源:origin: com.netflix.conductor/conductor-redis-persistence

@Override
public ScanResult<Tuple> zscan(String key, String cursor) {
 Jedis jedis = null;
  try {
   jedis = jedisPool.getResource();
   return jedis.zscan(key, cursor);
  } finally {
   if (jedis != null)
    jedis.close();
  }
}

代码示例来源:origin: org.nutz/nutz-integration-jedis

public ScanResult<Tuple> zscan(String key, String cursor) {
  Jedis jedis = getJedis();
  try {
    return jedis.zscan(key, cursor);
  } finally {Streams.safeClose(jedis);}
}

代码示例来源:origin: org.nutz/nutz-integration-jedis

public ScanResult<Tuple> zscan(String key, String cursor, ScanParams params) {
  Jedis jedis = getJedis();
  try {
    return jedis.zscan(key, cursor, params);
  } finally {Streams.safeClose(jedis);}
}

代码示例来源:origin: org.springframework.data/spring-data-redis

@Override
protected ScanIteration<Tuple> doScan(byte[] key, long cursorId, ScanOptions options) {
  if (isQueueing() || isPipelined()) {
    throw new UnsupportedOperationException("'ZSCAN' cannot be called in pipeline / transaction mode.");
  }
  ScanParams params = JedisConverters.toScanParams(options);
  ScanResult<redis.clients.jedis.Tuple> result = connection.getJedis().zscan(key,
      JedisConverters.toBytes(cursorId), params);
  return new ScanIteration<>(Long.valueOf(result.getStringCursor()),
      JedisConverters.tuplesToTuples().convert(result.getResult()));
}

代码示例来源:origin: apache/servicemix-bundles

@Override
protected ScanIteration<Tuple> doScan(byte[] key, long cursorId, ScanOptions options) {
  if (isQueueing() || isPipelined()) {
    throw new UnsupportedOperationException("'ZSCAN' cannot be called in pipeline / transaction mode.");
  }
  ScanParams params = JedisConverters.toScanParams(options);
  ScanResult<redis.clients.jedis.Tuple> result = connection.getJedis().zscan(key,
      JedisConverters.toBytes(cursorId), params);
  return new ScanIteration<>(Long.valueOf(result.getStringCursor()),
      JedisConverters.tuplesToTuples().convert(result.getResult()));
}

代码示例来源:origin: mindwind/craft-atom

private ScanResult<Map.Entry<String, Double>> zscan_count(Jedis j, String key, String cursor, int count) {
  ScanParams param = new ScanParams();
  param.count(count);
  redis.clients.jedis.ScanResult<Tuple> sr = j.zscan(key, cursor, param);
  return new ScanResult<Map.Entry<String, Double>>(sr.getStringCursor(), convert(sr.getResult()));
}

代码示例来源:origin: mindwind/craft-atom

private ScanResult<Map.Entry<String, Double>> zscan_match(Jedis j, String key, String cursor, String pattern) {
  ScanParams param = new ScanParams();
  param.match(pattern);
  redis.clients.jedis.ScanResult<Tuple> sr = j.zscan(key, cursor, param);
  return new ScanResult<Map.Entry<String, Double>>(sr.getStringCursor(), convert(sr.getResult()));
}

代码示例来源:origin: mindwind/craft-atom

private ScanResult<Map.Entry<String, Double>> zscan_match_count(Jedis j, String key, String cursor, String pattern, int count) {
  ScanParams param = new ScanParams();
  param.match(pattern);
  param.count(count);
  redis.clients.jedis.ScanResult<Tuple> sr = j.zscan(key, cursor, param);
  return new ScanResult<Map.Entry<String, Double>>(sr.getStringCursor(), convert(sr.getResult()));
}

相关文章

Jedis类方法