Class HadoopShimsImpl

java.lang.Object
org.apache.hadoop.hbase.HadoopShimsImpl
All Implemented Interfaces:
HadoopShims

public class HadoopShimsImpl extends Object implements HadoopShims
Compatibility shim layer implementation for Hadoop-2.
  • Constructor Details

  • Method Details

    • createTestTaskAttemptContext

      public <T, J> T createTestTaskAttemptContext(J job, String taskId)
      Returns a TaskAttemptContext instance created from the given parameters.
      Specified by:
      createTestTaskAttemptContext in interface HadoopShims
      Parameters:
      job - an instance of o.a.h.mapreduce.Job
      taskId - an identifier for the task attempt id. Should be parsable by TaskAttemptID.forName(String)
      Returns:
      a concrete TaskAttemptContext instance of o.a.h.mapreduce.TaskAttemptContext