public class LensFileOutputFormat
extends org.apache.hadoop.mapred.FileOutputFormat<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.Text>
| Modifier and Type | Class and Description |
|---|---|
static class |
LensFileOutputFormat.LensRowWriter
The Class LensRowWriter.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
NEWLINE
The Constant NEWLINE.
|
static String |
UTF16LE
The Constant UTF16LE.
|
static String |
UTF8
The Constant UTF8.
|
static Pattern |
VALID_PATTERN
Regex pattern for valid file path name characters
|
| Constructor and Description |
|---|
LensFileOutputFormat() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
static String |
getValidOutputFileName(String name)
Generates a valid output file name from the given name
|
checkOutputSpecs, getCompressOutput, getOutputCompressorClass, getOutputPath, getPathForCustomFile, getTaskOutputPath, getUniqueName, getWorkOutputPath, setCompressOutput, setOutputCompressorClass, setOutputPath, setWorkOutputPathpublic static final String UTF8
public static final String UTF16LE
public static final String NEWLINE
public static final Pattern VALID_PATTERN
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>IOExceptionpublic 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 encodingIOException - Signals that an I/O exception has occurred.public String getResultEncoding(org.apache.hadoop.conf.Configuration conf)
conf - the confpublic String getOuptutFileExtn(org.apache.hadoop.conf.Configuration conf)
conf - the confpublic static Class<? extends org.apache.hadoop.io.compress.CompressionCodec> getOutputCompressorClass(org.apache.hadoop.conf.Configuration conf)
conf - the confpublic static boolean getCompressOutput(org.apache.hadoop.conf.Configuration conf)
conf - the confCopyright © 2014–2015 Apache Software Foundation. All rights reserved.