本文整理汇总了Java中org.apache.hadoop.mapreduce.v2.api.records.JobId.getId方法的典型用法代码示例。如果您正苦于以下问题:Java JobId.getId方法的具体用法?Java JobId.getId怎么用?Java JobId.getId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.hadoop.mapreduce.v2.api.records.JobId
的用法示例。
在下文中一共展示了JobId.getId方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getEventToEnqueue
import org.apache.hadoop.mapreduce.v2.api.records.JobId; //导入方法依赖的package包/类
private JobHistoryEvent getEventToEnqueue(JobId jobId) {
HistoryEvent toReturn = new JobStatusChangedEvent(new JobID(Integer.toString(jobId.getId()), jobId.getId()), "change status");
return new JobHistoryEvent(jobId, toReturn);
}
示例2: fromYarn
import org.apache.hadoop.mapreduce.v2.api.records.JobId; //导入方法依赖的package包/类
public static org.apache.hadoop.mapred.JobID fromYarn(JobId id) {
String identifier = fromClusterTimeStamp(id.getAppId().getClusterTimestamp());
return new org.apache.hadoop.mapred.JobID(identifier, id.getId());
}
示例3: jobSerialNumber
import org.apache.hadoop.mapreduce.v2.api.records.JobId; //导入方法依赖的package包/类
/**
* Computes a serial number used as part of directory naming for the given jobId.
* @param id the jobId.
* @return the serial number used as part of directory naming for the given jobid
*/
public static int jobSerialNumber(JobId id) {
return id.getId();
}