IN - Input type parameter.@Public public interface SinkFunction<IN> extends org.apache.flink.api.common.functions.Function, Serializable
| 限定符和类型 | 接口和说明 |
|---|---|
static interface |
SinkFunction.Context<T>
Context that
SinkFunctions can use for getting additional data about
an input record. |
@Deprecated default void invoke(IN value) throws Exception
invoke(Object, Context).Exceptiondefault void invoke(IN value, SinkFunction.Context context) throws Exception
You have to override this method when implementing a SinkFunction, this is a
default method for backward compatibility with the old-style method only.
value - The input record.context - Additional context about the input record.Exception - This method may throw exceptions. Throwing an exception will cause the operation
to fail and may trigger recovery.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.