Class OutputFormatSinkFunction<IN>
- java.lang.Object
-
- org.apache.flink.api.common.functions.AbstractRichFunction
-
- org.apache.flink.streaming.api.functions.sink.RichSinkFunction<IN>
-
- org.apache.flink.streaming.api.functions.sink.OutputFormatSinkFunction<IN>
-
- Type Parameters:
IN- Input type
- All Implemented Interfaces:
Serializable,org.apache.flink.api.common.functions.Function,org.apache.flink.api.common.functions.RichFunction,org.apache.flink.api.java.typeutils.InputTypeConfigurable,SinkFunction<IN>
@PublicEvolving @Deprecated public class OutputFormatSinkFunction<IN> extends RichSinkFunction<IN> implements org.apache.flink.api.java.typeutils.InputTypeConfigurable
Deprecated.Please use theStreamingFileSinkfor writing to files from a streaming program.Simple implementation of the SinkFunction writing tuples in the specified OutputFormat format.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.streaming.api.functions.sink.SinkFunction
SinkFunction.Context
-
-
Constructor Summary
Constructors Constructor Description OutputFormatSinkFunction(org.apache.flink.api.common.io.OutputFormat<IN> format)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()Deprecated.org.apache.flink.api.common.io.OutputFormat<IN>getFormat()Deprecated.voidinvoke(IN record)Deprecated.voidopen(org.apache.flink.configuration.Configuration parameters)Deprecated.This method is deprecated since Flink 1.19.voidsetInputType(org.apache.flink.api.common.typeinfo.TypeInformation<?> type, org.apache.flink.api.common.ExecutionConfig executionConfig)Deprecated.voidsetRuntimeContext(org.apache.flink.api.common.functions.RuntimeContext context)Deprecated.-
Methods inherited from class org.apache.flink.api.common.functions.AbstractRichFunction
getIterationRuntimeContext, getRuntimeContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.streaming.api.functions.sink.SinkFunction
finish, invoke, writeWatermark
-
-
-
-
Constructor Detail
-
OutputFormatSinkFunction
public OutputFormatSinkFunction(org.apache.flink.api.common.io.OutputFormat<IN> format)
Deprecated.
-
-
Method Detail
-
open
@Deprecated public void open(org.apache.flink.configuration.Configuration parameters) throws Exception
Deprecated.This method is deprecated since Flink 1.19. The users are recommended to implementopen(OpenContext openContext)and overrideopen(Configuration parameters)with an empty body instead. 1. If you implementopen(OpenContext openContext), theopen(OpenContext openContext)will be invoked and theopen(Configuration parameters)won't be invoked. 2. If you don't implementopen(OpenContext openContext), theopen(Configuration parameters)will be invoked in the default implementation of theopen(OpenContext openContext).Initialization method for theOutputFormatSinkFunction.- Specified by:
openin interfaceorg.apache.flink.api.common.functions.RichFunction- Overrides:
openin classorg.apache.flink.api.common.functions.AbstractRichFunction- Parameters:
parameters- The configuration containing the parameters attached to the contract.- Throws:
Exception- if an error happens.- See Also:
- FLIP-344: Remove parameter in RichFunction#open
-
setRuntimeContext
public void setRuntimeContext(org.apache.flink.api.common.functions.RuntimeContext context)
Deprecated.- Specified by:
setRuntimeContextin interfaceorg.apache.flink.api.common.functions.RichFunction- Overrides:
setRuntimeContextin classorg.apache.flink.api.common.functions.AbstractRichFunction
-
setInputType
public void setInputType(org.apache.flink.api.common.typeinfo.TypeInformation<?> type, org.apache.flink.api.common.ExecutionConfig executionConfig)Deprecated.- Specified by:
setInputTypein interfaceorg.apache.flink.api.java.typeutils.InputTypeConfigurable
-
invoke
public void invoke(IN record) throws Exception
Deprecated.- Specified by:
invokein interfaceSinkFunction<IN>- Throws:
Exception
-
close
public void close() throws IOExceptionDeprecated.- Specified by:
closein interfaceorg.apache.flink.api.common.functions.RichFunction- Overrides:
closein classorg.apache.flink.api.common.functions.AbstractRichFunction- Throws:
IOException
-
getFormat
public org.apache.flink.api.common.io.OutputFormat<IN> getFormat()
Deprecated.
-
-