Class PrintingOutputFormat<T>

  • Type Parameters:
    T - Input record type
    All Implemented Interfaces:
    Serializable, org.apache.flink.api.common.io.OutputFormat<T>

    @Deprecated
    @PublicEvolving
    public class PrintingOutputFormat<T>
    extends org.apache.flink.api.common.io.RichOutputFormat<T>
    Deprecated.
    All Flink DataSet APIs are deprecated since Flink 1.18 and will be removed in a future Flink major version. You can still build your application in DataSet, but you should move to either the DataStream and/or Table API.
    Output format that prints results into either stdout or stderr.

    Four possible format options: sinkIdentifier:taskId> output <- sinkIdentifier provided, parallelism > 1 sinkIdentifier> output <- sinkIdentifier provided, parallelism == 1 taskId> output <- no sinkIdentifier provided, parallelism > 1 output <- no sinkIdentifier provided, parallelism == 1

    See Also:
    FLIP-131: Consolidate the user-facing Dataflow SDKs/APIs (and deprecate the DataSet API, Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apache.flink.api.common.io.OutputFormat

        org.apache.flink.api.common.io.OutputFormat.InitializationContext
    • Constructor Summary

      Constructors 
      Constructor Description
      PrintingOutputFormat()
      Deprecated.
      Instantiates a printing output format that prints to standard out.
      PrintingOutputFormat​(boolean stdErr)
      Deprecated.
      Instantiates a printing output format that prints to standard out.
      PrintingOutputFormat​(String sinkIdentifier, boolean stdErr)
      Deprecated.
      Instantiates a printing output format that prints to standard out with a prefixed message.
    • Constructor Detail

      • PrintingOutputFormat

        public PrintingOutputFormat()
        Deprecated.
        Instantiates a printing output format that prints to standard out.
      • PrintingOutputFormat

        public PrintingOutputFormat​(boolean stdErr)
        Deprecated.
        Instantiates a printing output format that prints to standard out.
        Parameters:
        stdErr - True, if the format should print to standard error instead of standard out.
      • PrintingOutputFormat

        public PrintingOutputFormat​(String sinkIdentifier,
                                    boolean stdErr)
        Deprecated.
        Instantiates a printing output format that prints to standard out with a prefixed message.
        Parameters:
        sinkIdentifier - Message that is prefixed to the output of the value.
        stdErr - True, if the format should print to standard error instead of standard out.
    • Method Detail

      • configure

        public void configure​(org.apache.flink.configuration.Configuration parameters)
        Deprecated.
      • open

        public void open​(int taskNumber,
                         int numTasks)
        Deprecated.
      • writeRecord

        public void writeRecord​(T record)
        Deprecated.
      • close

        public void close()
        Deprecated.