org.apache.jena.query.Query.isReduced()方法的使用及代码示例

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

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

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

相关文章