本文整理了Java中org.apache.lens.server.api.query.QueryContext.setExecuteTimeoutMillis
方法的一些代码示例,展示了QueryContext.setExecuteTimeoutMillis
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。QueryContext.setExecuteTimeoutMillis
方法的具体详情如下:
包路径:org.apache.lens.server.api.query.QueryContext
类名称:QueryContext
方法名:setExecuteTimeoutMillis
暂无
代码示例来源:origin: apache/lens
/**
* Creates the context.
*
* @param query the query
* @param userName the user name
* @param conf the conf
* @param qconf the qconf
* @return the query context
* @throws LensException the lens exception
*/
protected QueryContext createContext(String query, String userName, LensConf conf, Configuration qconf,
long timeOutMillis) throws LensException {
QueryContext ctx = new QueryContext(query, userName, conf, qconf, drivers.values());
ctx.setExecuteTimeoutMillis(timeOutMillis);
return ctx;
}
代码示例来源:origin: apache/lens
/**
* Creates the context.
*
* @param pctx the pctx
* @param userName the user name
* @param conf the conf
* @param qconf the qconf
* @return the query context
* @throws LensException the lens exception
*/
protected QueryContext createContext(PreparedQueryContext pctx, String userName, LensConf conf, Configuration qconf,
long timeOutMillis) throws LensException {
QueryContext ctx = new QueryContext(pctx, userName, conf, qconf);
ctx.setExecuteTimeoutMillis(timeOutMillis);
return ctx;
}
代码示例来源:origin: apache/lens
conf.setInt(LensConfConstants.PREFETCH_INMEMORY_RESULTSET_ROWS, rowsToPreFecth);
QueryContext context = createQueryContext(query, conf);
context.setExecuteTimeoutMillis(executeTimeoutMillis);
driver.executeAsync(context);
while (!context.getDriverStatus().isFinished()) {
内容来源于网络,如有侵权,请联系作者删除!