@Experimental public interface TwoOutputStreamProcessFunction<IN,OUT1,OUT2> extends ProcessFunction
| 限定符和类型 | 方法和说明 |
|---|---|
default void |
endInput(TwoOutputNonPartitionedContext<OUT1,OUT2> ctx)
This is a life-cycle method indicates that this function will no longer receive any input
data.
|
default void |
onProcessingTimer(long timestamp,
Collector<OUT1> output1,
Collector<OUT2> output2,
PartitionedContext ctx)
Callback for processing timer.
|
void |
processRecord(IN record,
Collector<OUT1> output1,
Collector<OUT2> output2,
PartitionedContext ctx)
Process and emit record to the first/second output through
Collectors. |
close, open, usesStatesvoid processRecord(IN record, Collector<OUT1> output1, Collector<OUT2> output2, PartitionedContext ctx) throws Exception
Collectors.record - to process.output1 - to emit processed records to the first output.output2 - to emit processed records to the second output.ctx - runtime context in which this function is executed.Exceptiondefault void endInput(TwoOutputNonPartitionedContext<OUT1,OUT2> ctx)
ctx - the context in which this function is executed.default void onProcessingTimer(long timestamp,
Collector<OUT1> output1,
Collector<OUT2> output2,
PartitionedContext ctx)
timestamp - when this callback is triggered.output1 - to emit record.output2 - to emit record.ctx - runtime context in which this function is executed.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.