Class ExampleOutputFormat

java.lang.Object
org.apache.hadoop.mapreduce.OutputFormat<K,V>
org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<Void,T>
org.apache.parquet.hadoop.ParquetOutputFormat<org.apache.parquet.example.data.Group>
org.apache.parquet.hadoop.example.ExampleOutputFormat

public class ExampleOutputFormat extends ParquetOutputFormat<org.apache.parquet.example.data.Group>
An example output format

must be provided the schema up front

See Also:
  • Constructor Details

    • ExampleOutputFormat

      public ExampleOutputFormat()
  • Method Details

    • setSchema

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

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