I
- Vertex idE
- Edge value (needs to be WritableComparable)public class EdgeComparator<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.WritableComparable> extends Object implements Comparator<Edge<I,E>>, Serializable
Constructor and Description |
---|
EdgeComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Edge<I,E> e1,
Edge<I,E> e2) |
static <I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.WritableComparable> |
compareEdges(Edge<I,E> e1,
Edge<I,E> e2)
Compares two edges.
|
static <I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.WritableComparable> |
equal(Edge<I,E> e1,
Edge<I,E> e2)
Indicates whether two edges are equal.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public int compare(Edge<I,E> e1, Edge<I,E> e2)
compare
in interface Comparator<Edge<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.WritableComparable>>
public static <I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.WritableComparable> int compareEdges(Edge<I,E> e1, Edge<I,E> e2)
I
- Vertex idE
- Edge value (needs to be WritableComparable)e1
- First edgee2
- Second edgepublic static <I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.WritableComparable> boolean equal(Edge<I,E> e1, Edge<I,E> e2)
I
- Vertex idE
- Edge value (needs to be WritableComparable)e1
- First edgee2
- Second edgeCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.