public abstract class TypeAwareWritable<T> extends java.lang.Object implements NewWritable<T>
NewWritable.NewIntWritable, NewWritable.NewLongWritable, NewWritable.NewTextWritable| Constructor and Description |
|---|
TypeAwareWritable() |
| Modifier and Type | Method and Description |
|---|---|
T |
getValue() |
int |
hashCode() |
void |
readFields(java.io.DataInput in) |
void |
setValue(T value) |
java.lang.String |
toString() |
void |
write(java.io.DataOutput out) |
protected T value
public void setValue(T value)
setValue in interface NewWritable<T>public T getValue()
getValue in interface NewWritable<T>public int hashCode()
hashCode in class java.lang.Objectpublic void write(java.io.DataOutput out)
throws java.io.IOException
write in interface org.apache.hadoop.io.Writablejava.io.IOExceptionpublic void readFields(java.io.DataInput in)
throws java.io.IOException
readFields in interface org.apache.hadoop.io.Writablejava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object