@InterfaceAudience.Public @InterfaceStability.Stable public class NullWritable extends Object implements WritableComparable<NullWritable>
| Modifier and Type | Class and Description |
|---|---|
static class |
NullWritable.Comparator
A Comparator "optimized" for NullWritable.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(NullWritable other) |
boolean |
equals(Object other) |
static NullWritable |
get()
Returns the single instance of this class.
|
int |
hashCode() |
void |
readFields(DataInput in)
Deserialize the fields of this object from
in. |
String |
toString() |
void |
write(DataOutput out)
Serialize the fields of this object to
out. |
public static NullWritable get()
public int compareTo(NullWritable other)
compareTo in interface Comparable<NullWritable>public void readFields(DataInput in) throws IOException
Writablein.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields in interface Writablein - DataInput to deseriablize this object from.IOExceptionpublic void write(DataOutput out) throws IOException
Writableout.write in interface Writableout - DataOuput to serialize this object into.IOExceptionCopyright © 2019 Apache Software Foundation. All Rights Reserved.