Class ReflectionUtil


  • public class ReflectionUtil
    extends Object
    Utility class for creating various instances using reflection.
    • Constructor Summary

      Constructors 
      Constructor Description
      ReflectionUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.apache.hadoop.mapreduce.Mapper.Context createMapperContext​(org.apache.hadoop.mapreduce.Mapper mapper, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.mapreduce.TaskAttemptID taskAttemptId, org.apache.hadoop.mapreduce.RecordReader reader, org.apache.hadoop.mapreduce.RecordWriter writer, org.apache.hadoop.mapreduce.OutputCommitter committer, org.apache.hadoop.mapreduce.StatusReporter reporter, org.apache.hadoop.mapreduce.InputSplit split)  
      static org.apache.hadoop.mapreduce.TaskAttemptContext createTaskAttemptContext​(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.mapreduce.TaskAttemptID taskAttemptId)  
    • Constructor Detail

      • ReflectionUtil

        public ReflectionUtil()
    • Method Detail

      • createTaskAttemptContext

        public static org.apache.hadoop.mapreduce.TaskAttemptContext createTaskAttemptContext​(org.apache.hadoop.conf.Configuration conf,
                                                                                              org.apache.hadoop.mapreduce.TaskAttemptID taskAttemptId)
                                                                                       throws Exception
        Throws:
        Exception
      • createMapperContext

        public static org.apache.hadoop.mapreduce.Mapper.Context createMapperContext​(org.apache.hadoop.mapreduce.Mapper mapper,
                                                                                     org.apache.hadoop.conf.Configuration conf,
                                                                                     org.apache.hadoop.mapreduce.TaskAttemptID taskAttemptId,
                                                                                     org.apache.hadoop.mapreduce.RecordReader reader,
                                                                                     org.apache.hadoop.mapreduce.RecordWriter writer,
                                                                                     org.apache.hadoop.mapreduce.OutputCommitter committer,
                                                                                     org.apache.hadoop.mapreduce.StatusReporter reporter,
                                                                                     org.apache.hadoop.mapreduce.InputSplit split)
                                                                              throws Exception
        Throws:
        Exception