@InterfaceAudience.Private public class TextSerializer extends Object implements INativeSerializer<org.apache.hadoop.io.Text>, INativeComparable
Constructor and Description |
---|
TextSerializer() |
Modifier and Type | Method and Description |
---|---|
void |
deserialize(DataInput in,
int length,
org.apache.hadoop.io.Text w) |
int |
getLength(org.apache.hadoop.io.Text w)
get length of data to be serialized.
|
void |
serialize(org.apache.hadoop.io.Text w,
DataOutput out) |
public TextSerializer() throws SecurityException, NoSuchMethodException
public int getLength(org.apache.hadoop.io.Text w) throws IOException
INativeSerializer
getLength
in interface INativeSerializer<org.apache.hadoop.io.Text>
IOException
public void serialize(org.apache.hadoop.io.Text w, DataOutput out) throws IOException
serialize
in interface INativeSerializer<org.apache.hadoop.io.Text>
IOException
public void deserialize(DataInput in, int length, org.apache.hadoop.io.Text w) throws IOException
deserialize
in interface INativeSerializer<org.apache.hadoop.io.Text>
IOException
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.