public class PigAvroOutputFormat extends org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<org.apache.hadoop.io.NullWritable,Object>
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_DEFLATE_LEVEL
The default deflate level.
|
static String |
DEFLATE_CODEC
The deflate codec
|
static String |
DEFLATE_LEVEL_KEY
The configuration key for Avro deflate level.
|
static String |
EXT
The file name extension for avro data files.
|
static String |
OUTPUT_CODEC
The configuration key for the Avro codec.
|
static String |
SYNC_INTERVAL_KEY
The configuration key for Avro sync interval.
|
Constructor and Description |
---|
PigAvroOutputFormat()
default constructor
|
PigAvroOutputFormat(org.apache.avro.Schema s)
construct with specified output schema
|
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.NullWritable,Object> |
getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context) |
static void |
setDeflateLevel(org.apache.hadoop.mapreduce.Job job,
int level)
Enable output compression using the deflate codec and
specify its level.
|
checkOutputSpecs, getCompressOutput, getDefaultWorkFile, getOutputCommitter, getOutputCompressorClass, getOutputName, getOutputPath, getPathForWorkFile, getUniqueFile, getWorkOutputPath, setCompressOutput, setOutputCompressorClass, setOutputName, setOutputPath
public static final String EXT
public static final String DEFLATE_LEVEL_KEY
public static final int DEFAULT_DEFLATE_LEVEL
public static final String OUTPUT_CODEC
public static final String DEFLATE_CODEC
public static final String SYNC_INTERVAL_KEY
public PigAvroOutputFormat()
public PigAvroOutputFormat(org.apache.avro.Schema s)
s
- output schemapublic static void setDeflateLevel(org.apache.hadoop.mapreduce.Job job, int level)
public org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.NullWritable,Object> getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException, InterruptedException
getRecordWriter
in class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<org.apache.hadoop.io.NullWritable,Object>
IOException
InterruptedException
Copyright © 2007-2017 The Apache Software Foundation