public static class SimpleTriangleClosingComputation.Pair extends Object implements Comparable<SimpleTriangleClosingComputation.Pair>
| Constructor and Description |
|---|
Pair(org.apache.hadoop.io.IntWritable k,
Integer v)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(SimpleTriangleClosingComputation.Pair other)
Comparator to quickly sort by values
|
boolean |
equals(Object obj) |
org.apache.hadoop.io.IntWritable |
getKey()
key getter
|
Integer |
getValue()
value getter
|
int |
hashCode() |
public Pair(org.apache.hadoop.io.IntWritable k,
Integer v)
k - the keyv - the valuepublic org.apache.hadoop.io.IntWritable getKey()
public Integer getValue()
public int compareTo(SimpleTriangleClosingComputation.Pair other)
compareTo in interface Comparable<SimpleTriangleClosingComputation.Pair>other - the Pair to compare with THISCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.