public class FoldWithinPartitionFunction extends Object implements org.apache.spark.api.java.function.Function2<Integer,Iterator<AtomicLong>,Iterator<AtomicLong>>
| Constructor and Description |
|---|
FoldWithinPartitionFunction(org.apache.spark.Accumulator<org.nd4j.common.primitives.Counter<Integer>> maxPartitionAcc) |
| Modifier and Type | Method and Description |
|---|---|
Iterator<AtomicLong> |
call(Integer ind,
Iterator<AtomicLong> partition) |
public FoldWithinPartitionFunction(org.apache.spark.Accumulator<org.nd4j.common.primitives.Counter<Integer>> maxPartitionAcc)
public Iterator<AtomicLong> call(Integer ind, Iterator<AtomicLong> partition) throws Exception
call in interface org.apache.spark.api.java.function.Function2<Integer,Iterator<AtomicLong>,Iterator<AtomicLong>>ExceptionCopyright © 2020. All rights reserved.