@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
INativeSerializergetLength in interface INativeSerializer<org.apache.hadoop.io.Text>IOExceptionpublic void serialize(org.apache.hadoop.io.Text w,
                      DataOutput out)
               throws IOException
serialize in interface INativeSerializer<org.apache.hadoop.io.Text>IOExceptionpublic void deserialize(DataInput in, int length, org.apache.hadoop.io.Text w) throws IOException
deserialize in interface INativeSerializer<org.apache.hadoop.io.Text>IOExceptionCopyright © 2008–2023 Apache Software Foundation. All rights reserved.