public class ColumnTruncateMapper extends org.apache.hadoop.mapred.MapReduceBase implements org.apache.hadoop.mapred.Mapper<Object,RCFileValueBufferWrapper,Object,Object>
Modifier and Type | Field and Description |
---|---|
static String |
BACKUP_PREFIX |
static org.apache.commons.logging.Log |
LOG |
Constructor and Description |
---|
ColumnTruncateMapper() |
Modifier and Type | Method and Description |
---|---|
static org.apache.hadoop.fs.Path |
backupOutputPath(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path outpath,
org.apache.hadoop.mapred.JobConf job) |
void |
close() |
void |
configure(org.apache.hadoop.mapred.JobConf job) |
static void |
jobClose(org.apache.hadoop.fs.Path outputPath,
boolean success,
org.apache.hadoop.mapred.JobConf job,
SessionState.LogHelper console,
DynamicPartitionCtx dynPartCtx,
org.apache.hadoop.mapred.Reporter reporter) |
void |
map(Object k,
RCFileValueBufferWrapper value,
org.apache.hadoop.mapred.OutputCollector<Object,Object> output,
org.apache.hadoop.mapred.Reporter reporter) |
public static final org.apache.commons.logging.Log LOG
public static String BACKUP_PREFIX
public void configure(org.apache.hadoop.mapred.JobConf job)
configure
in interface org.apache.hadoop.mapred.JobConfigurable
configure
in class org.apache.hadoop.mapred.MapReduceBase
public void map(Object k, RCFileValueBufferWrapper value, org.apache.hadoop.mapred.OutputCollector<Object,Object> output, org.apache.hadoop.mapred.Reporter reporter) throws IOException
map
in interface org.apache.hadoop.mapred.Mapper<Object,RCFileValueBufferWrapper,Object,Object>
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class org.apache.hadoop.mapred.MapReduceBase
IOException
public static org.apache.hadoop.fs.Path backupOutputPath(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path outpath, org.apache.hadoop.mapred.JobConf job) throws IOException, HiveException
IOException
HiveException
public static void jobClose(org.apache.hadoop.fs.Path outputPath, boolean success, org.apache.hadoop.mapred.JobConf job, SessionState.LogHelper console, DynamicPartitionCtx dynPartCtx, org.apache.hadoop.mapred.Reporter reporter) throws HiveException, IOException
HiveException
IOException
Copyright © 2017 The Apache Software Foundation. All rights reserved.