org.apache.avro.util
Class Utf8
java.lang.Object
org.apache.avro.util.Utf8
- All Implemented Interfaces:
- Comparable<Utf8>
@Stringable
public class Utf8
- extends Object
- implements Comparable<Utf8>
A Utf8 string.
Utf8
public Utf8()
Utf8
public Utf8(String string)
Utf8
public Utf8(byte[] bytes)
getBytes
public byte[] getBytes()
getLength
public int getLength()
setLength
public Utf8 setLength(int newLength)
toString
public String toString()
- Overrides:
toString
in class Object
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
compareTo
public int compareTo(Utf8 that)
- Specified by:
compareTo
in interface Comparable<Utf8>
Copyright © 2010 The Apache Software Foundation