public class TopScoredInts extends Object implements org.apache.hadoop.io.Writable
| Constructor and Description |
|---|
TopScoredInts() |
TopScoredInts(int n) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int n,
float f) |
PairOfIntFloat[] |
extractAll() |
int |
getMaxElements() |
void |
readFields(DataInput in) |
int |
size() |
void |
write(DataOutput out) |
public void add(int n,
float f)
public int getMaxElements()
public int size()
public PairOfIntFloat[] extractAll()
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.WritableIOExceptionCopyright © 2018. All rights reserved.