103104105106107108109110111112
t.append(r.nextInt(limit)); return t; } public static Tuple genRandSmallTuple(String s, Integer value){ Tuple t = new DefaultTuple(); t.append(s); t.append(value); return t; }
195196197198199200201202203204
} 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; }
96979899100101102103104
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; }
40414243444546474849
kryo.writeObject(output, object); } @Override protected Tuple doDeserialize(Kryo kryo, Input input) { DefaultTuple tuple = kryo.readObject(input, DefaultTuple.class); restoreConversionService(tuple); return tuple; }