@PublicEvolving public class LongZeroConvergence extends Object implements ConvergenceCriterion<LongValue>
ConvergenceCriterion
over an Aggregator
that defines convergence as reached
once the aggregator holds the value zero. The aggregated data type is a LongValue
.Constructor and Description |
---|
LongZeroConvergence() |
Modifier and Type | Method and Description |
---|---|
boolean |
isConverged(int iteration,
LongValue value)
Returns true, if the aggregator value is zero, false otherwise.
|
public boolean isConverged(int iteration, LongValue value)
isConverged
in interface ConvergenceCriterion<LongValue>
iteration
- The number of the iteration superstep. Ignored in this case.value
- The aggregator value, which is compared to zero.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.