|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapred.FileOutputFormat<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.Text>
org.apache.lens.lib.query.LensFileOutputFormat
public class LensFileOutputFormat
File output format which would write Text values in the charset enconding passed.
| Nested Class Summary | |
|---|---|
static class |
LensFileOutputFormat.LensRowWriter
The Class LensRowWriter. |
| Nested classes/interfaces inherited from class org.apache.hadoop.mapred.FileOutputFormat |
|---|
org.apache.hadoop.mapred.FileOutputFormat.Counter |
| Field Summary | |
|---|---|
static String |
NEWLINE
The Constant NEWLINE. |
static String |
UTF16LE
The Constant UTF16LE. |
static String |
UTF8
The Constant UTF8. |
| Constructor Summary | |
|---|---|
LensFileOutputFormat()
|
|
| Method Summary | |
|---|---|
static LensFileOutputFormat.LensRowWriter |
createRecordWriter(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path tmpWorkPath,
org.apache.hadoop.util.Progressable progress,
boolean isCompressed,
String extn,
String encoding)
Creates the record writer. |
static boolean |
getCompressOutput(org.apache.hadoop.conf.Configuration conf)
Gets the compress output. |
String |
getOuptutFileExtn(org.apache.hadoop.conf.Configuration conf)
Gets the ouptut file extn. |
static Class<? extends org.apache.hadoop.io.compress.CompressionCodec> |
getOutputCompressorClass(org.apache.hadoop.conf.Configuration conf)
Gets the output compressor class. |
org.apache.hadoop.mapred.RecordWriter<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.Text> |
getRecordWriter(org.apache.hadoop.fs.FileSystem ignored,
org.apache.hadoop.mapred.JobConf job,
String name,
org.apache.hadoop.util.Progressable progress)
|
String |
getResultEncoding(org.apache.hadoop.conf.Configuration conf)
Gets the result encoding. |
| Methods inherited from class org.apache.hadoop.mapred.FileOutputFormat |
|---|
checkOutputSpecs, getCompressOutput, getOutputCompressorClass, getOutputPath, getPathForCustomFile, getTaskOutputPath, getUniqueName, getWorkOutputPath, setCompressOutput, setOutputCompressorClass, setOutputPath, setWorkOutputPath |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String UTF8
public static final String UTF16LE
public static final String NEWLINE
| Constructor Detail |
|---|
public LensFileOutputFormat()
| Method Detail |
|---|
public org.apache.hadoop.mapred.RecordWriter<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.Text> getRecordWriter(org.apache.hadoop.fs.FileSystem ignored,
org.apache.hadoop.mapred.JobConf job,
String name,
org.apache.hadoop.util.Progressable progress)
throws IOException
getRecordWriter in interface org.apache.hadoop.mapred.OutputFormat<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.Text>getRecordWriter in class org.apache.hadoop.mapred.FileOutputFormat<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.Text>IOException
public static LensFileOutputFormat.LensRowWriter createRecordWriter(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path tmpWorkPath,
org.apache.hadoop.util.Progressable progress,
boolean isCompressed,
String extn,
String encoding)
throws IOException
conf - the conftmpWorkPath - the tmp work pathprogress - the progressisCompressed - the is compressedextn - the extnencoding - the encoding
IOException - Signals that an I/O exception has occurred.public String getResultEncoding(org.apache.hadoop.conf.Configuration conf)
conf - the conf
public String getOuptutFileExtn(org.apache.hadoop.conf.Configuration conf)
conf - the conf
public static Class<? extends org.apache.hadoop.io.compress.CompressionCodec> getOutputCompressorClass(org.apache.hadoop.conf.Configuration conf)
conf - the conf
public static boolean getCompressOutput(org.apache.hadoop.conf.Configuration conf)
conf - the conf
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||