@FunctionalInterface @Experimental public interface ApplyPartitionFunction<OUT> extends Function
Modifier and Type | Method and Description |
---|---|
void |
apply(Collector<OUT> collector,
PartitionedContext ctx)
The actual method to be applied to each partition.
|
void apply(Collector<OUT> collector, PartitionedContext ctx) throws Exception
collector
- to output data.ctx
- runtime context in which this function is executed.Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.