public class PigAvroOutputFormat
extends org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<org.apache.hadoop.io.NullWritable,java.lang.Object>
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_DEFLATE_LEVEL
The default deflate level.
|
static java.lang.String |
DEFLATE_CODEC
The deflate codec
|
static java.lang.String |
DEFLATE_LEVEL_KEY
The configuration key for Avro deflate level.
|
static java.lang.String |
EXT
The file name extension for avro data files.
|
static java.lang.String |
OUTPUT_CODEC
The configuration key for the Avro codec.
|
static java.lang.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,java.lang.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 java.lang.String EXT
public static final java.lang.String DEFLATE_LEVEL_KEY
public static final int DEFAULT_DEFLATE_LEVEL
public static final java.lang.String OUTPUT_CODEC
public static final java.lang.String DEFLATE_CODEC
public static final java.lang.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,java.lang.Object> getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws java.io.IOException, java.lang.InterruptedException
getRecordWriter
in class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<org.apache.hadoop.io.NullWritable,java.lang.Object>
java.io.IOException
java.lang.InterruptedException
Copyright © 2007-2012 The Apache Software Foundation