Interface TwoOutputApplyPartitionFunction<OUT1,OUT2>
- All Superinterfaces:
org.apache.flink.api.common.functions.Function,Serializable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
@Experimental
public interface TwoOutputApplyPartitionFunction<OUT1,OUT2>
extends org.apache.flink.api.common.functions.Function
A function to be applied to all partitions with two outputs.
-
Method Summary
-
Method Details
-
apply
void apply(Collector<OUT1> firstOutput, Collector<OUT2> secondOutput, TwoOutputPartitionedContext<OUT1, OUT2> ctx) throws ExceptionThe actual method to be applied to each partition.- Parameters:
firstOutput- to emit record to first output.secondOutput- to emit record to second output.ctx- runtime context in which this function is executed.- Throws:
Exception
-