org.apache.hadoop.util.Progress.toString()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(5.5k)|赞(0)|评价(0)|浏览(166)

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

Progress.toString介绍

暂无

代码示例

代码示例来源:origin: org.apache.hadoop/hadoop-common

@Override
public String toString() {
 StringBuilder result = new StringBuilder();
 toString(result);
 return result.toString();
}

代码示例来源:origin: org.apache.hadoop/hadoop-common

private synchronized void toString(StringBuilder buffer) {
 buffer.append(status);
 if (phases.size() != 0 && currentPhase < phases.size()) {
  buffer.append(" > ");
  phase().toString(buffer);
 }
}

代码示例来源:origin: com.facebook.hadoop/hadoop-core

public String toString() {
 StringBuffer result = new StringBuffer();
 toString(result);
 return result.toString();
}

代码示例来源:origin: org.jvnet.hudson.hadoop/hadoop-core

public String toString() {
 StringBuffer result = new StringBuffer();
 toString(result);
 return result.toString();
}

代码示例来源:origin: com.github.jiayuhan-it/hadoop-common

@Override
public String toString() {
 StringBuilder result = new StringBuilder();
 toString(result);
 return result.toString();
}

代码示例来源:origin: ch.cern.hadoop/hadoop-common

@Override
public String toString() {
 StringBuilder result = new StringBuilder();
 toString(result);
 return result.toString();
}

代码示例来源:origin: io.prestosql.hadoop/hadoop-apache

@Override
public String toString() {
 StringBuilder result = new StringBuilder();
 toString(result);
 return result.toString();
}

代码示例来源:origin: io.hops/hadoop-common

@Override
public String toString() {
 StringBuilder result = new StringBuilder();
 toString(result);
 return result.toString();
}

代码示例来源:origin: io.hops/hadoop-common

private synchronized void toString(StringBuilder buffer) {
 buffer.append(status);
 if (phases.size() != 0 && currentPhase < phases.size()) {
  buffer.append(" > ");
  phase().toString(buffer);
 }
}

代码示例来源:origin: com.github.jiayuhan-it/hadoop-common

private synchronized void toString(StringBuilder buffer) {
 buffer.append(status);
 if (phases.size() != 0 && currentPhase < phases.size()) {
  buffer.append(" > ");
  phase().toString(buffer);
 }
}

代码示例来源:origin: com.facebook.hadoop/hadoop-core

private synchronized void toString(StringBuffer buffer) {
 buffer.append(status);
 if (phases.size() != 0 && currentPhase < phases.size()) {
  buffer.append(" > ");
  phase().toString(buffer);
 }
}

代码示例来源:origin: ch.cern.hadoop/hadoop-common

private synchronized void toString(StringBuilder buffer) {
 buffer.append(status);
 if (phases.size() != 0 && currentPhase < phases.size()) {
  buffer.append(" > ");
  phase().toString(buffer);
 }
}

代码示例来源:origin: io.prestosql.hadoop/hadoop-apache

private synchronized void toString(StringBuilder buffer) {
 buffer.append(status);
 if (phases.size() != 0 && currentPhase < phases.size()) {
  buffer.append(" > ");
  phase().toString(buffer);
 }
}

代码示例来源:origin: org.apache.hadoop/hadoop-mapreduce-client-core

Assert.assertEquals(copyMessage(1, 1, 1), progress.toString());
Assert.assertEquals(copyMessage(2, 1, 1), progress.toString());
Assert.assertEquals(copyMessage(3, 2, 2), progress.toString());
Assert.assertEquals(copyMessage(4, 0.5, 1), progress.toString());
Assert.assertEquals(copyMessage(5, 1, 1), progress.toString());
Assert.assertEquals(copyMessage(6, 1, 1), progress.toString());
Assert.assertEquals(copyMessage(7, 1, 1), progress.toString());
Assert.assertEquals(copyMessage(8, 0.5, 1), progress.toString());
Assert.assertEquals(copyMessage(9, 1, 1), progress.toString());
Assert.assertEquals(copyMessage(10, 1, 2), progress.toString());

代码示例来源:origin: com.facebook.hadoop/hadoop-core

private void sendLastUpdate(TaskUmbilicalProtocol umbilical) 
throws IOException {
 // send a final status report
 taskStatus.statusUpdate(taskProgress.get(),
             taskProgress.toString(), 
             counters);
 statusUpdate(umbilical);
}

代码示例来源:origin: ch.cern.hadoop/hadoop-mapreduce-client-core

/**
 * Sends last status update before sending umbilical.done(); 
 */
private void sendLastUpdate(TaskUmbilicalProtocol umbilical) 
throws IOException {
 taskStatus.setOutputSize(calculateOutputSize());
 // send a final status report
 taskStatus.statusUpdate(taskProgress.get(),
             taskProgress.toString(), 
             counters);
 statusUpdate(umbilical);
}

代码示例来源:origin: io.hops/hadoop-mapreduce-client-core

/**
 * Sends last status update before sending umbilical.done(); 
 */
private void sendLastUpdate(TaskUmbilicalProtocol umbilical) 
throws IOException {
 taskStatus.setOutputSize(calculateOutputSize());
 // send a final status report
 taskStatus.statusUpdate(taskProgress.get(),
             taskProgress.toString(), 
             counters);
 statusUpdate(umbilical);
}

代码示例来源:origin: org.apache.hadoop/hadoop-mapred

/**
 * Sends last status update before sending umbilical.done(); 
 */
private void sendLastUpdate(TaskUmbilicalProtocol umbilical) 
throws IOException {
 taskStatus.setOutputSize(calculateOutputSize());
 // send a final status report
 taskStatus.statusUpdate(taskProgress.get(),
             taskProgress.toString(), 
             counters);
 statusUpdate(umbilical);
}

代码示例来源:origin: io.prestosql.hadoop/hadoop-apache

/**
 * Sends last status update before sending umbilical.done(); 
 */
private void sendLastUpdate(TaskUmbilicalProtocol umbilical) 
throws IOException {
 taskStatus.setOutputSize(calculateOutputSize());
 // send a final status report
 taskStatus.statusUpdate(taskProgress.get(),
             taskProgress.toString(), 
             counters);
 statusUpdate(umbilical);
}

代码示例来源:origin: com.github.jiayuhan-it/hadoop-mapreduce-client-core

/**
 * Sends last status update before sending umbilical.done(); 
 */
private void sendLastUpdate(TaskUmbilicalProtocol umbilical) 
throws IOException {
 taskStatus.setOutputSize(calculateOutputSize());
 // send a final status report
 taskStatus.statusUpdate(taskProgress.get(),
             taskProgress.toString(), 
             counters);
 statusUpdate(umbilical);
}

相关文章