Package 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.UTF8>,org.apache.hadoop.io.Writable,org.apache.hadoop.io.WritableComparable<org.apache.hadoop.io.UTF8>
@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 Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.io.UTF8
org.apache.hadoop.io.UTF8.Comparator -
Constructor Summary
ConstructorsConstructorDescriptionDeprecatedUTF8(String string) Construct from a given string.DeprecatedUTF8(DeprecatedUTF8 utf8) Construct from a given string. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringreadString(DataInput in) static intwriteString(DataOutput out, String s) Methods inherited from class org.apache.hadoop.io.UTF8
compareTo, equals, fromBytes, getBytes, getBytes, getLength, hashCode, readFields, set, set, skip, toString, toStringChecked, write
-
Constructor Details
-
DeprecatedUTF8
public DeprecatedUTF8() -
DeprecatedUTF8
Construct from a given string. -
DeprecatedUTF8
Construct from a given string.
-
-
Method Details
-
readString
- Throws:
IOException
-
writeString
- Throws:
IOException
-