@InterfaceAudience.Public
@InterfaceStability.Evolving
public interface INativeSerializer<T>
DefaultSerializer provides default implementations.
Note: if you implemented your customized NativeSerializer instead of DefaultSerializer,
you have to make sure the native side can serialize it correctly.| Modifier and Type | Method and Description |
|---|---|
void |
deserialize(DataInput in,
int length,
T w) |
int |
getLength(T w)
get length of data to be serialized.
|
void |
serialize(T w,
DataOutput out) |
int getLength(T w) throws IOException
IOExceptionvoid serialize(T w, DataOutput out) throws IOException
IOExceptionvoid deserialize(DataInput in, int length, T w) throws IOException
IOExceptionCopyright © 2008–2022 Apache Software Foundation. All rights reserved.