Spring Data Key-Value

org.springframework.data.keyvalue.redis.connection
Interface RedisZSetCommands

All Known Subinterfaces:
RedisCommands, RedisConnection, StringRedisConnection
All Known Implementing Classes:
DefaultStringRedisConnection, JedisConnection, JredisConnection

public interface RedisZSetCommands

ZSet(SortedSet)-specific commands supported by Redis.

Author:
Costin Leau

Nested Class Summary
static class RedisZSetCommands.Aggregate
          Sort aggregation operations.
static interface RedisZSetCommands.Tuple
          ZSet tuple.
 
Method Summary
 Boolean zAdd(byte[] key, double score, byte[] value)
           
 Long zCard(byte[] key)
           
 Long zCount(byte[] key, double min, double max)
           
 Double zIncrBy(byte[] key, double increment, byte[] value)
           
 Long zInterStore(byte[] destKey, byte[]... sets)
           
 Long zInterStore(byte[] destKey, RedisZSetCommands.Aggregate aggregate, int[] weights, byte[]... sets)
           
 Set<byte[]> zRange(byte[] key, long start, long end)
           
 Set<byte[]> zRangeByScore(byte[] key, double min, double max)
           
 Set<byte[]> zRangeByScore(byte[] key, double min, double max, long offset, long count)
           
 Set<RedisZSetCommands.Tuple> zRangeByScoreWithScore(byte[] key, double min, double max)
           
 Set<RedisZSetCommands.Tuple> zRangeByScoreWithScore(byte[] key, double min, double max, long offset, long count)
           
 Set<RedisZSetCommands.Tuple> zRangeWithScore(byte[] key, long start, long end)
           
 Long zRank(byte[] key, byte[] value)
           
 Boolean zRem(byte[] key, byte[] value)
           
 Long zRemRange(byte[] key, long start, long end)
           
 Long zRemRangeByScore(byte[] key, double min, double max)
           
 Set<byte[]> zRevRange(byte[] key, long start, long end)
           
 Set<RedisZSetCommands.Tuple> zRevRangeWithScore(byte[] key, long start, long end)
           
 Long zRevRank(byte[] key, byte[] value)
           
 Double zScore(byte[] key, byte[] value)
           
 Long zUnionStore(byte[] destKey, byte[]... sets)
           
 Long zUnionStore(byte[] destKey, RedisZSetCommands.Aggregate aggregate, int[] weights, byte[]... sets)
           
 

Method Detail

zAdd

Boolean zAdd(byte[] key,
             double score,
             byte[] value)

zRem

Boolean zRem(byte[] key,
             byte[] value)

zIncrBy

Double zIncrBy(byte[] key,
               double increment,
               byte[] value)

zRank

Long zRank(byte[] key,
           byte[] value)

zRevRank

Long zRevRank(byte[] key,
              byte[] value)

zRange

Set<byte[]> zRange(byte[] key,
                   long start,
                   long end)

zRangeWithScore

Set<RedisZSetCommands.Tuple> zRangeWithScore(byte[] key,
                                             long start,
                                             long end)

zRevRange

Set<byte[]> zRevRange(byte[] key,
                      long start,
                      long end)

zRevRangeWithScore

Set<RedisZSetCommands.Tuple> zRevRangeWithScore(byte[] key,
                                                long start,
                                                long end)

zRangeByScore

Set<byte[]> zRangeByScore(byte[] key,
                          double min,
                          double max)

zRangeByScoreWithScore

Set<RedisZSetCommands.Tuple> zRangeByScoreWithScore(byte[] key,
                                                    double min,
                                                    double max)

zRangeByScore

Set<byte[]> zRangeByScore(byte[] key,
                          double min,
                          double max,
                          long offset,
                          long count)

zRangeByScoreWithScore

Set<RedisZSetCommands.Tuple> zRangeByScoreWithScore(byte[] key,
                                                    double min,
                                                    double max,
                                                    long offset,
                                                    long count)

zCount

Long zCount(byte[] key,
            double min,
            double max)

zCard

Long zCard(byte[] key)

zScore

Double zScore(byte[] key,
              byte[] value)

zRemRange

Long zRemRange(byte[] key,
               long start,
               long end)

zRemRangeByScore

Long zRemRangeByScore(byte[] key,
                      double min,
                      double max)

zUnionStore

Long zUnionStore(byte[] destKey,
                 byte[]... sets)

zUnionStore

Long zUnionStore(byte[] destKey,
                 RedisZSetCommands.Aggregate aggregate,
                 int[] weights,
                 byte[]... sets)

zInterStore

Long zInterStore(byte[] destKey,
                 byte[]... sets)

zInterStore

Long zInterStore(byte[] destKey,
                 RedisZSetCommands.Aggregate aggregate,
                 int[] weights,
                 byte[]... sets)

Spring Data Key-Value

Copyright © 2010-2011 SpringSource. All Rights Reserved.