public class CountofDoubleWritable extends Object implements org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable
Modifier and Type | Class and Description |
---|---|
static class |
CountofDoubleWritable.Comparator
A Comparator optimized for DoubleWritable.
|
Constructor and Description |
---|
CountofDoubleWritable() |
CountofDoubleWritable(double value,
double count) |
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 |
getCount() |
double |
getValue() |
int |
hashCode() |
void |
readFields(DataInput in) |
void |
set(double value,
double count) |
String |
toString() |
void |
write(DataOutput out) |
public CountofDoubleWritable()
public CountofDoubleWritable(double value, double count)
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, double count)
public double getValue()
public double getCount()
public boolean equals(Object o)
o
is a DoubleWritable with the same value.public int compareTo(Object o)
compareTo
in interface Comparable
Copyright © 2013–2020. All rights reserved.