@InterfaceAudience.Public @InterfaceStability.Stable public class NullWritable extends Object implements WritableComparable<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
Writable
in
.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields
in interface Writable
in
- DataInput
to deseriablize this object from.IOException
- any other problem for readFields.public void write(DataOutput out) throws IOException
Writable
out
.write
in interface Writable
out
- DataOuput
to serialize this object into.IOException
- any other problem for write.Copyright © 2024 Apache Software Foundation. All rights reserved.