@InterfaceAudience.Public @InterfaceStability.Evolving public class DefaultSerializer extends Object implements INativeSerializer<Writable>
| Constructor and Description | 
|---|
DefaultSerializer()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
deserialize(DataInput in,
           int length,
           Writable w)  | 
int | 
getLength(Writable w)
get length of data to be serialized. 
 | 
void | 
serialize(Writable w,
         DataOutput out)  | 
public int getLength(Writable w) throws IOException
INativeSerializergetLength in interface INativeSerializer<Writable>IOExceptionpublic void serialize(Writable w, DataOutput out) throws IOException
serialize in interface INativeSerializer<Writable>IOExceptionpublic void deserialize(DataInput in, int length, Writable w) throws IOException
deserialize in interface INativeSerializer<Writable>IOExceptionCopyright © 2025 Apache Software Foundation. All rights reserved.