BoolWritableSerializer, BytesWritableSerializer, ByteWritableSerializer, DefaultSerializer, DoubleWritableSerializer, FloatWritableSerializer, IntWritableSerializer, LongWritableSerializer, NullWritableSerializer, TextSerializer, VIntWritableSerializer, VLongWritableSerializer@Public
@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 | Description |
|---|---|---|
void |
deserialize(java.io.DataInput in,
int length,
T w) |
|
int |
getLength(T w) |
get length of data to be serialized.
|
void |
serialize(T w,
java.io.DataOutput out) |
int getLength(T w) throws java.io.IOException
java.io.IOExceptionvoid serialize(T w, java.io.DataOutput out) throws java.io.IOException
java.io.IOExceptionvoid deserialize(java.io.DataInput in,
int length,
T w)
throws java.io.IOException
java.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.