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) |
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-2012 The Apache Software Foundation