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