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