T
- The type to be represented as an IOReadableWritable.public class SerializationDelegate<T> extends Object implements IOReadableWritable
IOReadableWritable
for
serialization, with the help of a type serializer.Constructor and Description |
---|
SerializationDelegate(TypeSerializer<T> serializer) |
Modifier and Type | Method and Description |
---|---|
T |
getInstance() |
void |
read(DataInputView in) |
void |
setInstance(T instance) |
void |
write(DataOutputView out) |
public SerializationDelegate(TypeSerializer<T> serializer)
public void setInstance(T instance)
public T getInstance()
public void write(DataOutputView out) throws IOException
write
in interface IOReadableWritable
IOException
public void read(DataInputView in) throws IOException
read
in interface IOReadableWritable
IOException
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.