Class ExampleOutputFormat

    • Constructor Detail

      • ExampleOutputFormat

        public ExampleOutputFormat()
    • Method Detail

      • setSchema

        public static void setSchema​(org.apache.hadoop.mapreduce.Job job,
                                     MessageType schema)
        set the schema being written to the job conf
        Parameters:
        job - a job
        schema - the schema of the data
      • getSchema

        public static MessageType getSchema​(org.apache.hadoop.mapreduce.Job job)
        retrieve the schema from the conf
        Parameters:
        job - a job
        Returns:
        the schema