- All Implemented Interfaces:
- Function, GenericReducer<Record,Record>, Serializable
- Enclosing class:
- ComputeEdgeDegrees
public static final class ComputeEdgeDegrees.CountEdges
extends ReduceFunction
implements Serializable
Creates for all records in the group a record of the form (v1, v2, c1, c2), where
v1 is the lexicographically smaller vertex id and the count for the vertex that
was the key contains the number of edges associated with it. The other count is zero.
This reducer also eliminates duplicate edges.
- See Also:
- Serialized Form