IN
- Input type parameter.@Public public interface SinkFunction<IN> extends Function, Serializable
Modifier and Type | Interface and Description |
---|---|
static interface |
SinkFunction.Context<T>
Context that
SinkFunctions can use for getting additional data about
an input record. |
Modifier and Type | Method and Description |
---|---|
default void |
invoke(IN value)
Deprecated.
|
default void |
invoke(IN value,
SinkFunction.Context context)
Writes the given value to the sink.
|
@Deprecated default void invoke(IN value) throws Exception
invoke(Object, Context)
.Exception
default 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–2019 The Apache Software Foundation. All rights reserved.