public class LongIntPairMapWritable
extends java.lang.Object
implements org.apache.hadoop.io.Writable
Constructor and Description |
---|
LongIntPairMapWritable() |
LongIntPairMapWritable(int size) |
LongIntPairMapWritable(LongIntPairMapWritable other) |
Modifier and Type | Method and Description |
---|---|
void |
addTo(long id,
int value) |
void |
clear() |
int |
get(long id) |
long |
getMaximumByValue() |
void |
merge(LongIntPairMapWritable other) |
void |
readFields(java.io.DataInput in) |
int |
size() |
void |
write(java.io.DataOutput out) |
public LongIntPairMapWritable()
public LongIntPairMapWritable(int size)
public LongIntPairMapWritable(LongIntPairMapWritable other)
public int get(long id)
public long getMaximumByValue()
public void addTo(long id, int value)
public void merge(LongIntPairMapWritable other)
public void clear()
public int size()
public void write(java.io.DataOutput out) throws java.io.IOException
write
in interface org.apache.hadoop.io.Writable
java.io.IOException
public void readFields(java.io.DataInput in) throws java.io.IOException
readFields
in interface org.apache.hadoop.io.Writable
java.io.IOException