public class StreamFold<IN,OUT> extends AbstractUdfStreamOperator<OUT,org.apache.flink.api.common.functions.FoldFunction<IN,OUT>> implements OneInputStreamOperator<IN,OUT>
StreamOperator.ChainingStrategy| Modifier and Type | Field and Description |
|---|---|
protected org.apache.flink.api.common.typeinfo.TypeInformation<OUT> |
outTypeInformation |
protected org.apache.flink.api.common.typeutils.TypeSerializer<OUT> |
outTypeSerializer |
userFunctionchainingStrategy, executionConfig, inputCopyDisabled, output, runtimeContext| Constructor and Description |
|---|
StreamFold(org.apache.flink.api.common.functions.FoldFunction<IN,OUT> folder,
OUT initialValue,
org.apache.flink.api.common.typeinfo.TypeInformation<OUT> outTypeInformation) |
| Modifier and Type | Method and Description |
|---|---|
void |
open(org.apache.flink.configuration.Configuration config)
This method is called before any elements are processed.
|
void |
processElement(IN element) |
close, confirmCheckpointCompleted, getStateSnapshotFromFunction, getUserFunction, restoreInitialState, setupdisableInputCopy, getChainingStrategy, isInputCopyingDisabled, setChainingStrategyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getChainingStrategy, isInputCopyingDisabled, setChainingStrategy, setupprotected org.apache.flink.api.common.typeutils.TypeSerializer<OUT> outTypeSerializer
protected org.apache.flink.api.common.typeinfo.TypeInformation<OUT> outTypeInformation
public void processElement(IN element) throws Exception
processElement in interface OneInputStreamOperator<IN,OUT>Exceptionpublic void open(org.apache.flink.configuration.Configuration config)
throws Exception
StreamOperatoropen in interface StreamOperator<OUT>open in class AbstractUdfStreamOperator<OUT,org.apache.flink.api.common.functions.FoldFunction<IN,OUT>>ExceptionCopyright © 2014–2015 The Apache Software Foundation. All rights reserved.