IN1
- The class type of the first input.IN2
- The class type of the second input.KEY
- The class type of the key.OUT
- The class type of the output values.public class CoGroupOperator<IN1,IN2,KEY extends Serializable,OUT>
extends org.apache.flink.streaming.api.operators.AbstractUdfStreamOperator<OUT,org.apache.flink.api.common.functions.CoGroupFunction<IN1,IN2,OUT>>
implements org.apache.flink.streaming.api.operators.TwoInputStreamOperator<IN1,IN2,OUT>, org.apache.flink.streaming.api.operators.BoundedMultiInput
Constructor and Description |
---|
CoGroupOperator(org.apache.flink.api.common.functions.CoGroupFunction<IN1,IN2,OUT> function) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
endInput(int inputId) |
void |
processElement1(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<IN1> streamRecord) |
void |
processElement2(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<IN2> streamRecord) |
void |
processWatermark(org.apache.flink.streaming.api.watermark.Watermark watermark) |
void |
setup(org.apache.flink.streaming.runtime.tasks.StreamTask<?,?> containingTask,
org.apache.flink.streaming.api.graph.StreamConfig config,
org.apache.flink.streaming.api.operators.Output<org.apache.flink.streaming.runtime.streamrecord.StreamRecord<OUT>> output) |
finish, getUserFunction, getUserFunctionParameters, initializeState, notifyCheckpointAborted, notifyCheckpointComplete, open, setOutputType, snapshotState
getChainingStrategy, getContainingTask, getCurrentKey, getExecutionConfig, getInternalTimerService, getKeyedStateBackend, getKeyedStateStore, getMetricGroup, getOperatorConfig, getOperatorID, getOperatorName, getOperatorStateBackend, getOrCreateKeyedState, getPartitionedState, getPartitionedState, getProcessingTimeService, getRuntimeContext, getTimeServiceManager, getUserCodeClassloader, initializeState, isUsingCustomRawKeyedState, prepareSnapshotPreBarrier, processLatencyMarker, processLatencyMarker1, processLatencyMarker2, processWatermark1, processWatermark2, processWatermarkStatus, processWatermarkStatus1, processWatermarkStatus2, reportOrForwardLatencyMarker, setChainingStrategy, setCurrentKey, setKeyContextElement1, setKeyContextElement2, setProcessingTimeService, snapshotState
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
processLatencyMarker1, processLatencyMarker2, processWatermark1, processWatermark2, processWatermarkStatus1, processWatermarkStatus2
finish, getMetricGroup, getOperatorID, initializeState, open, prepareSnapshotPreBarrier, setKeyContextElement1, setKeyContextElement2, snapshotState
public void setup(org.apache.flink.streaming.runtime.tasks.StreamTask<?,?> containingTask, org.apache.flink.streaming.api.graph.StreamConfig config, org.apache.flink.streaming.api.operators.Output<org.apache.flink.streaming.runtime.streamrecord.StreamRecord<OUT>> output)
public void endInput(int inputId) throws Exception
endInput
in interface org.apache.flink.streaming.api.operators.BoundedMultiInput
Exception
public void processWatermark(org.apache.flink.streaming.api.watermark.Watermark watermark) throws Exception
public void close() throws Exception
public void processElement1(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<IN1> streamRecord) throws Exception
Copyright © 2019–2023 The Apache Software Foundation. All rights reserved.