12131415161718
ObjectBuffer _kryo; ListDelegate _delegate; public KryoValuesSerializer(Map conf) { _kryo = SerializationFactory.getKryo(conf); _delegate = new ListDelegate(); }
3334353637383940
_kryo = SerializationFactory.getKryo(conf); _kryoInput = new Input(1); } public List<Object> deserializeFrom(Input input) { ListDelegate delegate = (ListDelegate) _kryo.readObject(input, ListDelegate.class); return delegate.getDelegate(); }
2930313233343536
ListDelegate _delegate; Output _kryoOut; public KryoValuesSerializer(Map conf) { _kryo = SerializationFactory.getKryo(conf); _delegate = new ListDelegate(); _kryoOut = new Output(2000, 2000000000); }
25262728293031
public class ListDelegateSerializer extends CollectionSerializer { @Override public Collection create(Kryo kryo, Input input, Class<Collection> type) { return new ListDelegate(); }
78910111213
import java.util.Collection; public class ListDelegateSerializer extends CollectionSerializer { @Override public Collection create(Kryo kryo, Input input, Class<Collection> type) { return new ListDelegate(); }
192021222324252627
this._kryo = SerializationFactory.getKryo(conf); this._kryoInput = new Input(1); } public List<Object> deserializeFrom(Input input) { ListDelegate delegate = (ListDelegate) _kryo.readObject(input, ListDelegate.class); return delegate.getDelegate(); }
1213141516171819