@Override public Collection create(Kryo kryo, Input input, Class<Collection> type) { return new ListDelegate(); } }
public void serialize(List<Object> values, Output out) throws IOException { // this ensures that list of values is always written the same way, regardless // of whether it's a java collection or one of clojure's persistent collections // (which have different serializers) // Doing this lets us deserialize as ArrayList and avoid writing the class here _delegate.setDelegate(values); _kryo.writeObject(out, _delegate); }
public List<Object> deserialize(Input input) { ListDelegate delegate = (ListDelegate) _kryo.readObject(input, ListDelegate.class); return delegate.getDelegate(); }
public KryoValuesSerializer(Map conf) { _kryo = SerializationFactory.getKryo(conf); _delegate = new ListDelegate(); _kryoOut = new Output(2000, 2000000000); }
public void serializeInto(List<Object> values, OutputStream out) throws IOException { // this ensures that list of values is always written the same way, regardless // of whether it's a java collection or one of clojure's persistent collections // (which have different serializers) // Doing this lets us deserialize as ArrayList and avoid writing the class here _delegate.setDelegate(values); _kryo.writeObject(out, _delegate); }
public List<Object> deserializeFrom(Input input) { ListDelegate delegate = (ListDelegate) _kryo.readObject(input, ListDelegate.class); return delegate.getDelegate(); }
public KryoValuesSerializer(Map conf) { _kryo = SerializationFactory.getKryo(conf); _delegate = new ListDelegate(); }
public void serializeInto(List<Object> values, Output out) throws IOException { // this ensures that list of values is always written the same way, regardless // of whether it's a java collection or one of clojure's persistent collections // (which have different serializers) // Doing this lets us deserialize as ArrayList and avoid writing the class here _delegate.setDelegate(values); _kryo.writeObject(out, _delegate); }
public List<Object> deserialize(Input input) { ListDelegate delegate = (ListDelegate) _kryo.readObject(input, ListDelegate.class); return delegate.getDelegate(); }
@Override public Collection create(Kryo kryo, Input input, Class<Collection> type) { return new ListDelegate(); } }
public void serialize(List<Object> values, Output out) throws IOException { // this ensures that list of values is always written the same way, regardless // of whether it's a java collection or one of clojure's persistent collections // (which have different serializers) // Doing this lets us deserialize as ArrayList and avoid writing the class here _delegate.setDelegate(values); _kryo.writeObject(out, _delegate); }
@Override public Collection create(Kryo kryo, Input input, Class<Collection> type) { return new ListDelegate(); } }
public KryoValuesSerializer(Map conf) { _kryo = SerializationFactory.getKryo(conf); _delegate = new ListDelegate(); _kryoOut = new Output(2000, 2000000000); }
public KryoValuesSerializer(Map conf) { _kryo = SerializationFactory.getKryo(conf); _delegate = new ListDelegate(); _kryoOut = new Output(2000, 2000000000); }