org.apache.hadoop.hdfs
Class DeprecatedUTF8
java.lang.Object
org.apache.hadoop.io.UTF8
org.apache.hadoop.hdfs.DeprecatedUTF8
- All Implemented Interfaces:
- Comparable, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable
@InterfaceAudience.Private
public class DeprecatedUTF8
- extends org.apache.hadoop.io.UTF8
A simple wrapper around UTF8
.
This class should be used only when it is absolutely necessary
to use UTF8
. The only difference is that
using this class does not require "@SuppressWarning" annotation to avoid
javac warning. Instead the deprecation is implied in the class name.
This should be treated as package private class to HDFS.
Nested classes/interfaces inherited from class org.apache.hadoop.io.UTF8 |
org.apache.hadoop.io.UTF8.Comparator |
Methods inherited from class org.apache.hadoop.io.UTF8 |
compareTo, equals, getBytes, getBytes, getLength, hashCode, readFields, set, set, skip, toString, write |
DeprecatedUTF8
public DeprecatedUTF8()
DeprecatedUTF8
public DeprecatedUTF8(String string)
- Construct from a given string.
DeprecatedUTF8
public DeprecatedUTF8(DeprecatedUTF8 utf8)
- Construct from a given string.
readString
public static String readString(DataInput in)
throws IOException
- Throws:
IOException
writeString
public static int writeString(DataOutput out,
String s)
throws IOException
- Throws:
IOException
Copyright © 2009 The Apache Software Foundation