コード例 #1
0
ファイル: ChildExecutor.java プロジェクト: Brassrat/dragon
 public ChildExecutor(ChildExecutionContext context) {
   this.context = context;
   this.taskAttemptId = context.getTaskAttemptId();
   this.taskType = context.getTaskType();
   attemptReport = Records.newRecord(TaskAttemptReport.class);
   gcUpdater = new GcTimeUpdater();
 }
コード例 #2
0
  public ReduceContextImpl(
      Configuration conf,
      ChildExecutionContext context,
      TaskReporter reporter,
      EventProducer<KEYIN, VALUEIN> producer,
      EventEmitter<KEYOUT, VALUEOUT> emitter)
      throws IOException {
    this.context = context;
    this.conf = new DragonConfiguration(conf);

    this.producer = producer;
    this.emitter = emitter;

    this.attemptId = context.getTaskAttemptId();
  }
コード例 #3
0
 @Override
 public String getUser() {
   return context.getUser();
 }
コード例 #4
0
 @Override
 public int getPartition() {
   return context.getPartition();
 }