本文整理了Java中org.apache.kylin.common.QueryContext.getAccumulatedMillis
方法的一些代码示例,展示了QueryContext.getAccumulatedMillis
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。QueryContext.getAccumulatedMillis
方法的具体详情如下:
包路径:org.apache.kylin.common.QueryContext
类名称:QueryContext
方法名:getAccumulatedMillis
暂无
代码示例来源:origin: apache/kylin
@Override
public int compare(QueryContext o1, QueryContext o2) {
if (o2.getAccumulatedMillis() > o1.getAccumulatedMillis()) {
return 1;
} else if (o2.getAccumulatedMillis() < o1.getAccumulatedMillis()) {
return -1;
} else {
return o1.getQueryId().compareTo(o2.getQueryId());
}
}
});
代码示例来源:origin: apache/kylin
sqlResponse.setDuration(queryContext.getAccumulatedMillis());
logQuery(queryContext.getQueryId(), sqlRequest, sqlResponse);
try {
代码示例来源:origin: apache/kylin
long scanCountThreshold = kylinConfig.getQueryScanCountCacheThreshold();
long scanBytesThreshold = kylinConfig.getQueryScanBytesCacheThreshold();
sqlResponse.setDuration(queryContext.getAccumulatedMillis());
logger.info("Stats of SQL response: isException: {}, duration: {}, total scan count {}", //
String.valueOf(sqlResponse.getIsException()), String.valueOf(sqlResponse.getDuration()),
代码示例来源:origin: org.apache.kylin/kylin-core-common
@Override
public int compare(QueryContext o1, QueryContext o2) {
if (o2.getAccumulatedMillis() > o1.getAccumulatedMillis()) {
return 1;
} else if (o2.getAccumulatedMillis() < o1.getAccumulatedMillis()) {
return -1;
} else {
return o1.getQueryId().compareTo(o2.getQueryId());
}
}
});
内容来源于网络,如有侵权,请联系作者删除!