public class FoldWithinPartitionFunction
extends java.lang.Object
implements org.apache.spark.api.java.function.Function2<java.lang.Integer,java.util.Iterator<java.util.concurrent.atomic.AtomicLong>,java.util.Iterator<java.util.concurrent.atomic.AtomicLong>>
Constructor and Description |
---|
FoldWithinPartitionFunction(org.apache.spark.Accumulator<Counter<java.lang.Integer>> maxPartitionAcc) |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<java.util.concurrent.atomic.AtomicLong> |
call(java.lang.Integer ind,
java.util.Iterator<java.util.concurrent.atomic.AtomicLong> partition) |
public FoldWithinPartitionFunction(org.apache.spark.Accumulator<Counter<java.lang.Integer>> maxPartitionAcc)
public java.util.Iterator<java.util.concurrent.atomic.AtomicLong> call(java.lang.Integer ind, java.util.Iterator<java.util.concurrent.atomic.AtomicLong> partition) throws java.lang.Exception
call
in interface org.apache.spark.api.java.function.Function2<java.lang.Integer,java.util.Iterator<java.util.concurrent.atomic.AtomicLong>,java.util.Iterator<java.util.concurrent.atomic.AtomicLong>>
java.lang.Exception