use of org.apache.phoenix.pherf.result.DataLoadTimeSummary in project phoenix by apache.
the class WriteWorkload method execute.
public Runnable execute() throws Exception {
return new Runnable() {
@Override
public void run() {
try {
DataLoadTimeSummary dataLoadTimeSummary = new DataLoadTimeSummary();
DataLoadThreadTime dataLoadThreadTime = new DataLoadThreadTime();
if (WriteWorkload.this.scenario == null) {
for (Scenario scenario : getParser().getScenarios()) {
exec(dataLoadTimeSummary, dataLoadThreadTime, scenario);
}
} else {
exec(dataLoadTimeSummary, dataLoadThreadTime, WriteWorkload.this.scenario);
}
resultUtil.write(dataLoadTimeSummary);
resultUtil.write(dataLoadThreadTime);
} catch (Exception e) {
logger.warn("", e);
}
}
};
}
Aggregations