public class FoldBetweenPartitionFunction
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.lang.Long>>
Constructor and Description |
---|
FoldBetweenPartitionFunction(org.apache.spark.broadcast.Broadcast<Counter<java.lang.Integer>> broadcastedMaxPerPartitionCounter) |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<java.lang.Long> |
call(java.lang.Integer ind,
java.util.Iterator<java.util.concurrent.atomic.AtomicLong> partition) |
public FoldBetweenPartitionFunction(org.apache.spark.broadcast.Broadcast<Counter<java.lang.Integer>> broadcastedMaxPerPartitionCounter)
public java.util.Iterator<java.lang.Long> 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.lang.Long>>
java.lang.Exception