public class ProcessOperator<IN,OUT>
extends org.apache.flink.streaming.api.operators.AbstractUdfStreamOperator<OUT,org.apache.flink.datastream.api.function.OneInputStreamProcessFunction<IN,OUT>>
implements org.apache.flink.streaming.api.operators.OneInputStreamOperator<IN,OUT>, org.apache.flink.streaming.api.operators.BoundedOneInput
OneInputStreamProcessFunction.| 限定符和类型 | 字段和说明 |
|---|---|
protected DefaultRuntimeContext |
context |
protected org.apache.flink.datastream.api.context.NonPartitionedContext<OUT> |
nonPartitionedContext |
protected TimestampCollector<OUT> |
outputCollector |
protected DefaultPartitionedContext |
partitionedContext |
| 构造器和说明 |
|---|
ProcessOperator(org.apache.flink.datastream.api.function.OneInputStreamProcessFunction<IN,OUT> userFunction) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Object |
currentKey() |
void |
endInput() |
protected org.apache.flink.datastream.api.context.NonPartitionedContext<OUT> |
getNonPartitionedContext() |
protected TimestampCollector<OUT> |
getOutputCollector() |
protected org.apache.flink.datastream.api.context.ProcessingTimeManager |
getProcessingTimeManager() |
void |
open() |
void |
processElement(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<IN> element) |
close, finish, getUserFunction, getUserFunctionParameters, initializeState, notifyCheckpointAborted, notifyCheckpointComplete, setOutputType, setup, snapshotStategetChainingStrategy, getContainingTask, getCurrentKey, getExecutionConfig, getInternalTimerService, getKeyedStateBackend, getKeyedStateStore, getMetricGroup, getOperatorConfig, getOperatorID, getOperatorName, getOperatorStateBackend, getOrCreateKeyedState, getPartitionedState, getPartitionedState, getProcessingTimeService, getRuntimeContext, getStateKeySelector1, getStateKeySelector2, getTimeServiceManager, getUserCodeClassloader, hasKeyContext1, hasKeyContext2, initializeState, isUsingCustomRawKeyedState, prepareSnapshotPreBarrier, processLatencyMarker, processLatencyMarker1, processLatencyMarker2, processRecordAttributes, processRecordAttributes1, processRecordAttributes2, processWatermark, processWatermark1, processWatermark2, processWatermarkStatus, processWatermarkStatus1, processWatermarkStatus2, reportOrForwardLatencyMarker, setChainingStrategy, setCurrentKey, setKeyContextElement1, setKeyContextElement2, setMailboxExecutor, setProcessingTimeService, snapshotState, useSplittableTimersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, finish, getMetricGroup, getOperatorAttributes, getOperatorID, initializeState, prepareSnapshotPreBarrier, setKeyContextElement1, setKeyContextElement2, snapshotStatenotifyCheckpointAborted, notifyCheckpointCompleteprotected transient DefaultRuntimeContext context
protected transient DefaultPartitionedContext partitionedContext
protected transient org.apache.flink.datastream.api.context.NonPartitionedContext<OUT> nonPartitionedContext
protected transient TimestampCollector<OUT> outputCollector
public void open()
throws Exception
public void processElement(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<IN> element) throws Exception
protected TimestampCollector<OUT> getOutputCollector()
public void endInput()
throws Exception
endInput 在接口中 org.apache.flink.streaming.api.operators.BoundedOneInputExceptionprotected Object currentKey()
protected org.apache.flink.datastream.api.context.ProcessingTimeManager getProcessingTimeManager()
protected org.apache.flink.datastream.api.context.NonPartitionedContext<OUT> getNonPartitionedContext()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.