OUT - The output type of the operatorF - The type of the user functionpublic abstract class AbstractUdfStreamOperator<OUT,F extends org.apache.flink.api.common.functions.Function & Serializable> extends AbstractStreamOperator<OUT> implements StatefulStreamOperator<OUT>
StreamOperator.ChainingStrategy| Modifier and Type | Field and Description |
|---|---|
protected F |
userFunction |
chainingStrategy, executionConfig, inputCopyDisabled, output, runtimeContext| Constructor and Description |
|---|
AbstractUdfStreamOperator(F userFunction) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
This method is called after no more elements for can arrive for processing.
|
void |
confirmCheckpointCompleted(long checkpointId,
long timestamp) |
Serializable |
getStateSnapshotFromFunction(long checkpointId,
long timestamp) |
F |
getUserFunction() |
void |
open(org.apache.flink.configuration.Configuration parameters)
This method is called before any elements are processed.
|
void |
restoreInitialState(Serializable state) |
void |
setup(Output<OUT> output,
org.apache.flink.api.common.functions.RuntimeContext runtimeContext)
Initializes the
StreamOperator for input and output handling. |
disableInputCopy, getChainingStrategy, isInputCopyingDisabled, setChainingStrategyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChainingStrategy, isInputCopyingDisabled, setChainingStrategyprotected final F extends org.apache.flink.api.common.functions.Function & Serializable userFunction
public AbstractUdfStreamOperator(F userFunction)
public final void setup(Output<OUT> output, org.apache.flink.api.common.functions.RuntimeContext runtimeContext)
StreamOperatorStreamOperator for input and output handling.setup in interface StreamOperator<OUT>setup in class AbstractStreamOperator<OUT>public void open(org.apache.flink.configuration.Configuration parameters)
throws Exception
StreamOperatoropen in interface StreamOperator<OUT>open in class AbstractStreamOperator<OUT>Exceptionpublic void close()
throws Exception
StreamOperatorclose in interface StreamOperator<OUT>close in class AbstractStreamOperator<OUT>Exceptionpublic void restoreInitialState(Serializable state) throws Exception
restoreInitialState in interface StatefulStreamOperator<OUT>Exceptionpublic Serializable getStateSnapshotFromFunction(long checkpointId, long timestamp) throws Exception
getStateSnapshotFromFunction in interface StatefulStreamOperator<OUT>Exceptionpublic void confirmCheckpointCompleted(long checkpointId,
long timestamp)
throws Exception
confirmCheckpointCompleted in interface StatefulStreamOperator<OUT>Exceptionpublic F getUserFunction()
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.