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