org.apache.kylin.common.QueryContext.getAccumulatedMillis()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(75)

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

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());
    }
  }
});

相关文章