public class DoubleWritable extends Object implements org.apache.hadoop.io.WritableComparable
Modifier and Type | Class and Description |
---|---|
static class |
DoubleWritable.Comparator
A Comparator optimized for DoubleWritable.
|
Constructor and Description |
---|
DoubleWritable() |
DoubleWritable(double value) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o) |
boolean |
equals(Object o)
Returns true iff
o is a DoubleWritable with the same value. |
double |
get() |
int |
hashCode() |
void |
readFields(DataInput in) |
void |
set(double value) |
String |
toString() |
void |
write(DataOutput out) |
public DoubleWritable()
public DoubleWritable(double value)
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void set(double value)
public double get()
public boolean equals(Object o)
o
is a DoubleWritable with the same value.public int compareTo(Object o)
compareTo
in interface Comparable
Copyright © 2007-2017 The Apache Software Foundation