Class OutputFormatSinkFunction<IN>

java.lang.Object
org.apache.flink.api.common.functions.AbstractRichFunction
org.apache.flink.streaming.api.functions.sink.legacy.RichSinkFunction<IN>
org.apache.flink.streaming.api.functions.sink.legacy.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:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.flink.streaming.api.functions.sink.legacy.SinkFunction

    SinkFunction.Context
  • Constructor Summary

    Constructors
    Constructor
    Description
    OutputFormatSinkFunction(org.apache.flink.api.common.io.OutputFormat<IN> format)
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated.
     
    org.apache.flink.api.common.io.OutputFormat<IN>
    Deprecated.
     
    void
    invoke(IN record)
    Deprecated.
     
    void
    open(org.apache.flink.api.common.functions.OpenContext openContext)
    Deprecated.
     
    void
    setInputType(org.apache.flink.api.common.typeinfo.TypeInformation<?> type, org.apache.flink.api.common.ExecutionConfig executionConfig)
    Deprecated.
     
    void
    setRuntimeContext(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.legacy.SinkFunction

    finish, invoke, writeWatermark
  • Constructor Details

    • OutputFormatSinkFunction

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

    • 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
    • invoke

      public void invoke(IN record) throws Exception
      Deprecated.
      Specified by:
      invoke in interface SinkFunction<IN>
      Throws:
      Exception
    • 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.