Class HadoopOutputFormat<K,​V>

    • Constructor Detail

      • HadoopOutputFormat

        public HadoopOutputFormat​(org.apache.hadoop.mapreduce.OutputFormat<K,​V> mapreduceOutputFormat,
                                  org.apache.hadoop.mapreduce.Job job)
    • Method Detail

      • writeRecord

        public void writeRecord​(Tuple2<K,​V> record)
                         throws IOException
        Description copied from interface: OutputFormat
        Adds a record to the output.

        When this method is called, the output format it guaranteed to be opened.

        Parameters:
        record - The records to add to the output.
        Throws:
        IOException - Thrown, if the records could not be added due to an I/O problem.