本文整理了Java中org.apache.jena.query.Query.isReduced
方法的一些代码示例,展示了Query.isReduced
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.isReduced
方法的具体详情如下:
包路径:org.apache.jena.query.Query
类名称:Query
方法名:isReduced
暂无
代码示例来源:origin: apache/jena
/**
* Constructor.
*
* @param aggHandler The aggregate handler that wraps the query we want to handle.
*/
public SelectHandler(AggregationHandler aggHandler) {
this.query = aggHandler.getQuery();
this.aggHandler = aggHandler;
setDistinct(query.isDistinct());
setReduced(query.isReduced());
}
代码示例来源:origin: org.apache.jena/jena-querybuilder
/**
* Constructor.
*
* @param aggHandler The aggregate handler that wraps the query we want to handle.
*/
public SelectHandler(AggregationHandler aggHandler) {
this.query = aggHandler.getQuery();
this.aggHandler = aggHandler;
setDistinct(query.isDistinct());
setReduced(query.isReduced());
}
代码示例来源:origin: apache/jena
@Override
public void visitSelectResultForm(Query query)
{
out.print("SELECT ") ;
if ( query.isDistinct() )
out.print("DISTINCT ") ;
if ( query.isReduced() )
out.print("REDUCED ") ;
out.print(" ") ; //Padding
if ( query.isQueryResultStar() )
out.print("*") ;
else
appendNamedExprList(query, out, query.getProject()) ;
out.newline() ;
}
代码示例来源:origin: apache/jena
/**
* Add all the variables from the select handler variable.
*
* @param selectHandler
* The select handler to copy the variables from.
*/
public void addAll(SelectHandler selectHandler) {
setReduced(selectHandler.query.isReduced());
setDistinct(selectHandler.query.isDistinct());
query.setQueryResultStar(selectHandler.query.isQueryResultStar());
VarExprList shProjectVars = selectHandler.query.getProject();
VarExprList qProjectVars = query.getProject();
for (Var var : shProjectVars.getVars()) {
// make sure there are no duplicates
if (!qProjectVars.contains(var)) {
qProjectVars.add(var, shProjectVars.getExpr(var));
}
}
aggHandler.addAll( selectHandler.aggHandler );
}
代码示例来源:origin: org.apache.jena/jena-querybuilder
/**
* Add all the variables from the select handler variable.
*
* @param selectHandler
* The select handler to copy the variables from.
*/
public void addAll(SelectHandler selectHandler) {
setReduced(selectHandler.query.isReduced());
setDistinct(selectHandler.query.isDistinct());
query.setQueryResultStar(selectHandler.query.isQueryResultStar());
VarExprList shProjectVars = selectHandler.query.getProject();
VarExprList qProjectVars = query.getProject();
for (Var var : shProjectVars.getVars()) {
// make sure there are no duplicates
if (!qProjectVars.contains(var)) {
qProjectVars.add(var, shProjectVars.getExpr(var));
}
}
aggHandler.addAll( selectHandler.aggHandler );
}
代码示例来源:origin: apache/jena
if ( query.isReduced() )
op = OpReduced.create(op) ;
代码示例来源:origin: apache/jena
if ( query.isReduced() )
内容来源于网络,如有侵权,请联系作者删除!