Class 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>

    @Internal
    public class OutputFormatSinkFunction<IN>
    extends RichSinkFunction<IN>
    implements org.apache.flink.api.java.typeutils.InputTypeConfigurable
    Deprecated.
    Please use the StreamingFileSink for writing to files from a streaming program.
    Simple implementation of the SinkFunction writing tuples in the specified OutputFormat format.
    See Also:
    Serialized Form
    • Constructor Detail

      • OutputFormatSinkFunction

        public OutputFormatSinkFunction​(org.apache.flink.api.common.io.OutputFormat<IN> format)
        Deprecated.
    • Method Detail

      • open

        public void open​(org.apache.flink.api.common.functions.OpenContext openContext)
                  throws Exception
        Deprecated.
        Specified by:
        open in interface org.apache.flink.api.common.functions.RichFunction
        Overrides:
        open in class org.apache.flink.api.common.functions.AbstractRichFunction
        Throws:
        Exception
      • setRuntimeContext

        public void setRuntimeContext​(org.apache.flink.api.common.functions.RuntimeContext context)
        Deprecated.
        Specified by:
        setRuntimeContext in interface org.apache.flink.api.common.functions.RichFunction
        Overrides:
        setRuntimeContext in class org.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:
        setInputType in interface org.apache.flink.api.java.typeutils.InputTypeConfigurable
      • close

        public void close()
                   throws IOException
        Deprecated.
        Specified by:
        close in interface org.apache.flink.api.common.functions.RichFunction
        Overrides:
        close in class org.apache.flink.api.common.functions.AbstractRichFunction
        Throws:
        IOException
      • getFormat

        public org.apache.flink.api.common.io.OutputFormat<IN> getFormat()
        Deprecated.