@Override public Double zIncrBy(byte[] key, double increment, byte[] value) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(value, "Value must not be null!"); try { return connection.getCluster().zincrby(key, increment, value); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Long zRank(byte[] key, byte[] value) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(value, "Value must not be null!"); try { return connection.getCluster().zrank(key, value); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Long zRevRank(byte[] key, byte[] value) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(value, "Value must not be null!"); try { return connection.getCluster().zrevrank(key, value); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Double zScore(byte[] key, byte[] value) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(value, "Value must not be null!"); try { return connection.getCluster().zscore(key, value); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Set<byte[]> zRange(byte[] key, long start, long end) { Assert.notNull(key, "Key must not be null!"); try { return connection.getCluster().zrange(key, start, end); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Long zRemRange(byte[] key, long start, long end) { Assert.notNull(key, "Key must not be null!"); try { return connection.getCluster().zremrangeByRank(key, start, end); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Long zRemRangeByScore(byte[] key, double min, double max) { Assert.notNull(key, "Key must not be null!"); try { return connection.getCluster().zremrangeByScore(key, min, max); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Set<byte[]> zRevRange(byte[] key, long start, long end) { Assert.notNull(key, "Key must not be null!"); try { return connection.getCluster().zrevrange(key, start, end); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Set<byte[]> zRevRangeByScore(byte[] key, double min, double max) { Assert.notNull(key, "Key must not be null!"); try { return connection.getCluster().zrevrangeByScore(key, max, min); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Long zCard(byte[] key) { Assert.notNull(key, "Key must not be null!"); try { return connection.getCluster().zcard(key); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Set<byte[]> zRangeByScore(byte[] key, double min, double max) { Assert.notNull(key, "Key must not be null!"); try { return connection.getCluster().zrangeByScore(key, min, max); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Long zCount(byte[] key, double min, double max) { Assert.notNull(key, "Key must not be null!"); try { return connection.getCluster().zcount(key, min, max); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Long zAdd(byte[] key, Set<Tuple> tuples) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(tuples, "Tuples must not be null!"); try { return connection.getCluster().zadd(key, JedisConverters.toTupleMap(tuples)); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Long zRem(byte[] key, byte[]... values) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(values, "Values must not be null!"); Assert.noNullElements(values, "Values must not contain null elements!"); try { return connection.getCluster().zrem(key, values); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Set<Tuple> zRevRangeByScoreWithScores(byte[] key, double min, double max) { Assert.notNull(key, "Key must not be null!"); try { return JedisConverters.toTupleSet(connection.getCluster().zrevrangeByScoreWithScores(key, max, min)); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Set<Tuple> zRevRangeWithScores(byte[] key, long start, long end) { Assert.notNull(key, "Key must not be null!"); try { return JedisConverters.toTupleSet(connection.getCluster().zrevrangeWithScores(key, start, end)); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Set<Tuple> zRangeWithScores(byte[] key, long start, long end) { Assert.notNull(key, "Key must not be null!"); try { return JedisConverters.toTupleSet(connection.getCluster().zrangeWithScores(key, start, end)); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Set<byte[]> zRangeByScore(byte[] key, String min, String max) { Assert.notNull(key, "Key must not be null!"); try { return connection.getCluster().zrangeByScore(key, JedisConverters.toBytes(min), JedisConverters.toBytes(max)); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Long zCount(byte[] key, Range range) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(range, "Range cannot be null for ZCOUNT."); byte[] min = JedisConverters.boundaryToBytesForZRange(range.getMin(), JedisConverters.NEGATIVE_INFINITY_BYTES); byte[] max = JedisConverters.boundaryToBytesForZRange(range.getMax(), JedisConverters.POSITIVE_INFINITY_BYTES); try { return connection.getCluster().zcount(key, min, max); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Long zRemRangeByScore(byte[] key, Range range) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(range, "Range cannot be null for ZREMRANGEBYSCORE."); byte[] min = JedisConverters.boundaryToBytesForZRange(range.getMin(), JedisConverters.NEGATIVE_INFINITY_BYTES); byte[] max = JedisConverters.boundaryToBytesForZRange(range.getMax(), JedisConverters.POSITIVE_INFINITY_BYTES); try { return connection.getCluster().zremrangeByScore(key, min, max); } catch (Exception ex) { throw convertJedisAccessException(ex); } }