|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapred.FileOutputFormat<AvroWrapper<T>,NullWritable>
org.apache.avro.mapred.AvroOutputFormat<T>
public class AvroOutputFormat<T>
An OutputFormat for Avro data files.
| Field Summary | |
|---|---|
static int |
DEFAULT_DEFLATE_LEVEL
The default deflate level. |
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 |
SYNC_INTERVAL_KEY
The configuration key for Avro sync interval. |
| Constructor Summary | |
|---|---|
AvroOutputFormat()
|
|
| Method Summary | |
|---|---|
RecordWriter<AvroWrapper<T>,NullWritable> |
getRecordWriter(FileSystem ignore,
JobConf job,
String name,
Progressable prog)
|
static void |
setDeflateLevel(JobConf job,
int level)
Enable output compression using the deflate codec and specify its level. |
static void |
setSyncInterval(JobConf job,
int syncIntervalInBytes)
Set the sync interval to be used by the underlying DataFileWriter. |
| Methods inherited from class org.apache.hadoop.mapred.FileOutputFormat |
|---|
checkOutputSpecs, getCompressOutput, getOutputCompressorClass, getOutputPath, getPathForCustomFile, getTaskOutputPath, getUniqueName, getWorkOutputPath, setCompressOutput, setOutputCompressorClass, setOutputPath |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String EXT
public static final String DEFLATE_LEVEL_KEY
public static final String SYNC_INTERVAL_KEY
public static final int DEFAULT_DEFLATE_LEVEL
| Constructor Detail |
|---|
public AvroOutputFormat()
| Method Detail |
|---|
public static void setDeflateLevel(JobConf job,
int level)
public static void setSyncInterval(JobConf job,
int syncIntervalInBytes)
DataFileWriter.
public RecordWriter<AvroWrapper<T>,NullWritable> getRecordWriter(FileSystem ignore,
JobConf job,
String name,
Progressable prog)
throws IOException
getRecordWriter in interface OutputFormat<AvroWrapper<T>,NullWritable>getRecordWriter in class FileOutputFormat<AvroWrapper<T>,NullWritable>IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||