public class IntDoublePairWritable extends Object implements org.apache.hadoop.io.Writable
| Constructor and Description |
|---|
IntDoublePairWritable() |
IntDoublePairWritable(int k,
double v) |
| Modifier and Type | Method and Description |
|---|---|
int |
getKey() |
double |
getValue() |
void |
readFields(DataInput in) |
void |
setKey(int k) |
void |
setValue(double v) |
void |
write(DataOutput out) |
public IntDoublePairWritable()
public IntDoublePairWritable(int k,
double v)
public void setKey(int k)
public void setValue(double v)
public void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionpublic void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic int getKey()
public double getValue()
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.