org.apache.hadoop.hive.ql.txn.compactor.Worker.getId()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(231)

本文整理了Java中org.apache.hadoop.hive.ql.txn.compactor.Worker.getId()方法的一些代码示例,展示了Worker.getId()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Worker.getId()方法的具体详情如下:
包路径:org.apache.hadoop.hive.ql.txn.compactor.Worker
类名称:Worker
方法名:getId

Worker.getId介绍

暂无

代码示例

代码示例来源:origin: apache/hive

@Override
public void init(AtomicBoolean stop, AtomicBoolean looped) throws Exception {
 super.init(stop, looped);
 StringBuilder name = new StringBuilder(hostname());
 name.append("-");
 name.append(getId());
 this.workerName = name.toString();
 setName(name.toString());
}

代码示例来源:origin: apache/drill

@Override
public void init(AtomicBoolean stop, AtomicBoolean looped) throws MetaException {
 super.init(stop, looped);
 StringBuilder name = new StringBuilder(hostname());
 name.append("-");
 name.append(getId());
 this.name = name.toString();
 setName(name.toString());
}

代码示例来源:origin: apache/hive

private static void runWorker(HiveConf hiveConf) throws MetaException {
 AtomicBoolean stop = new AtomicBoolean(true);
 Worker t = new Worker();
 t.setThreadId((int) t.getId());
 t.setHiveConf(hiveConf);
 AtomicBoolean looped = new AtomicBoolean();
 t.init(stop, looped);
 t.run();
}

代码示例来源:origin: apache/hive

/**
 * this is a clone from TestHiveStreamingConnection.TxnStatement2....
 */
public static void runWorker(HiveConf hiveConf) throws Exception {
 AtomicBoolean stop = new AtomicBoolean(true);
 Worker t = new Worker();
 t.setThreadId((int) t.getId());
 t.setConf(hiveConf);
 AtomicBoolean looped = new AtomicBoolean();
 t.init(stop, looped);
 t.run();
}

代码示例来源:origin: apache/hive

/**
 * this is a clone from TestTxnStatement2....
 */
public static void runWorker(HiveConf hiveConf) throws Exception {
 AtomicBoolean stop = new AtomicBoolean(true);
 Worker t = new Worker();
 t.setThreadId((int) t.getId());
 t.setConf(hiveConf);
 AtomicBoolean looped = new AtomicBoolean();
 t.init(stop, looped);
 t.run();
}

代码示例来源:origin: com.facebook.presto.hive/hive-apache

@Override
public void init(AtomicBoolean stop, AtomicBoolean looped) throws MetaException {
 super.init(stop, looped);
 StringBuilder name = new StringBuilder(hostname());
 name.append("-");
 name.append(getId());
 this.name = name.toString();
 setName(name.toString());
}

代码示例来源:origin: stackoverflow.com

@RequestMapping(method = RequestMethod.PUT, value = "/workers/{id}")
public ModelAndView update(@PathVariable final Long id, @Valid Worker entity, Errors errors, NativeWebRequest request) {
  ModelAndView model = new ModelAndView();
  entity.setId(id);
  if (errors.hasErrors()) {
    model.addObject("entity", entity);
    model.addObject("errors", errors);
    model.setViewName(names.provideViewName(Pages.EDIT));
  } else {
    System.out.println("upd-done");
    service.update(entity);
    model.setViewName("redirect:/workers/" + entity.getId());
    model.addObject(entity);
  }
  return model;
}

相关文章