public class TypedBytesWritable extends BytesWritable
BytesWritable.Comparator
构造器和说明 |
---|
TypedBytesWritable()
Create a TypedBytesWritable.
|
TypedBytesWritable(byte[] bytes)
Create a TypedBytesWritable with a given byte array as initial value.
|
限定符和类型 | 方法和说明 |
---|---|
Type |
getType()
Get the type code embedded in the first byte.
|
Object |
getValue()
Get the typed bytes as a Java object.
|
void |
setValue(Object obj)
Set the typed bytes from a given Java object.
|
String |
toString()
Generate a suitable string representation.
|
equals, get, getBytes, getCapacity, getLength, getSize, hashCode, readFields, set, set, setCapacity, setSize, write
compareTo, compareTo
compareTo
public TypedBytesWritable()
public TypedBytesWritable(byte[] bytes)
public void setValue(Object obj)
public Object getValue()
public Type getType()
public String toString()
toString
在类中 BytesWritable
Copyright © 2009 The Apache Software Foundation