@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
IOException
void serialize(T w, DataOutput out) throws IOException
IOException
void deserialize(DataInput in, int length, T w) throws IOException
IOException
Copyright © 2019 Apache Software Foundation. All rights reserved.