Package org.springframework.data.keyvalue.redis.connection

Examples of org.springframework.data.keyvalue.redis.connection.SortParameters


  }

  @Override
  public <T> List<T> sort(SortQuery<K> query, RedisSerializer<T> resultSerializer) {
    final byte[] rawKey = rawKey(query.getKey());
    final SortParameters params = QueryUtils.convertQuery(query, stringSerializer);

    List<byte[]> vals = execute(new RedisCallback<List<byte[]>>() {
      @Override
      public List<byte[]> doInRedis(RedisConnection connection) throws DataAccessException {
        return connection.sort(rawKey, params);
View Full Code Here


  @Override
  public Long sort(SortQuery<K> query, K storeKey) {
    final byte[] rawStoreKey = rawKey(storeKey);
    final byte[] rawKey = rawKey(query.getKey());
    final SortParameters params = QueryUtils.convertQuery(query, stringSerializer);

    return execute(new RedisCallback<Long>() {
      @Override
      public Long doInRedis(RedisConnection connection) throws DataAccessException {
        return connection.sort(rawKey, params, rawStoreKey);
View Full Code Here

TOP

Related Classes of org.springframework.data.keyvalue.redis.connection.SortParameters

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.