K
- ID typepublic static class DegreeAnnotationFunctions.DegreeCount<K> extends Object implements ReduceFunction<Vertex<K,LongValue>>
Constructor and Description |
---|
DegreeCount() |
public Vertex<K,LongValue> reduce(Vertex<K,LongValue> left, Vertex<K,LongValue> right) throws Exception
ReduceFunction
reduce
in interface ReduceFunction<Vertex<K,LongValue>>
left
- The first value to combine.right
- The second value to combine.Exception
- This method may throw exceptions. Throwing an exception will cause the
operation to fail and may trigger recovery.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.