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

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


  }

  static Set<Tuple> convertElementScore(List<ElementScore> tuples) {
    Set<Tuple> value = new LinkedHashSet<Tuple>(tuples.size());
    for (ElementScore tuple : tuples) {
      value.add(new DefaultTuple(encode(tuple.getElement()), Double.valueOf(tuple.getScore())));
    }

    return value;
  }
View Full Code Here


  }

  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.keyvalue.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.