Package org.springframework.data.redis.connection

Examples of org.springframework.data.redis.connection.DefaultTuple


      return null;
    }
    Set<Tuple> tuples = new LinkedHashSet<Tuple>(zrange.size());

    for (int i = 0; i < zrange.size(); i++) {
      tuples.add(new DefaultTuple(zrange.get(i).value, Double.valueOf(zrange.get(i).score)));
    }
    return tuples;
  }
View Full Code Here


      if (valueSerializer() == null && value.getValue() instanceof byte[]) {
        rawValue = (byte[]) value.getValue();
      } else {
        rawValue = valueSerializer().serialize(value.getValue());
      }
      rawTuples.add(new DefaultTuple(rawValue, value.getScore()));
    }
    return rawTuples;
  }
View Full Code Here

    for (int i = 0; i < byteArrays.length; i++) {
      byte[] value = (byte[]) byteArrays[i].data();
      i++;
      Double score = toDouble((byte[]) byteArrays[i].data());
      tuples.add(new DefaultTuple(value, score));
    }

    return tuples;
  }
View Full Code Here

   */
  @Deprecated
  static Set<Tuple> convertJedisTuple(Set<redis.clients.jedis.Tuple> tuples) {
    Set<Tuple> value = new LinkedHashSet<Tuple>(tuples.size());
    for (redis.clients.jedis.Tuple tuple : tuples) {
      value.add(new DefaultTuple(tuple.getBinaryElement(), tuple.getScore()));
    }

    return value;
  }
View Full Code Here

TOP

Related Classes of org.springframework.data.redis.connection.DefaultTuple

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.