@Async
private Future<Math.SummaryStatisticsDto> getVariableFacet(HarmonizationDataset dataset, String variableName,
OpalTable table) {
try {
String studyId = null;
if (table instanceof StudyTable) {
studyId = ((StudyTable)table).getStudyId();
} else if (table instanceof HarmonizationStudyTable) {
studyId = ((HarmonizationStudyTable)table).getStudyId();
}
return new AsyncResult<>(datasetService
.getVariableSummary(dataset, variableName, studyId, table.getProject(), table.getTable())
.getWrappedDto());
} catch(Exception e) {
log.warn("Unable to retrieve statistics: " + e.getMessage(), e);
return new AsyncResult<>(null);
}
}
PublishedDataschemaDatasetVariableResource.java 文件源码
java
阅读 68
收藏 0
点赞 0
评论 0
项目:mica2
作者:
评论列表
文章目录