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

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

本文整理了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

  1. /**
  2. * Constructor.
  3. *
  4. * @param aggHandler The aggregate handler that wraps the query we want to handle.
  5. */
  6. public SelectHandler(AggregationHandler aggHandler) {
  7. this.query = aggHandler.getQuery();
  8. this.aggHandler = aggHandler;
  9. setDistinct(query.isDistinct());
  10. setReduced(query.isReduced());
  11. }

代码示例来源:origin: org.apache.jena/jena-querybuilder

  1. /**
  2. * Constructor.
  3. *
  4. * @param aggHandler The aggregate handler that wraps the query we want to handle.
  5. */
  6. public SelectHandler(AggregationHandler aggHandler) {
  7. this.query = aggHandler.getQuery();
  8. this.aggHandler = aggHandler;
  9. setDistinct(query.isDistinct());
  10. setReduced(query.isReduced());
  11. }

代码示例来源:origin: apache/jena

  1. @Override
  2. public void visitSelectResultForm(Query query)
  3. {
  4. out.print("SELECT ") ;
  5. if ( query.isDistinct() )
  6. out.print("DISTINCT ") ;
  7. if ( query.isReduced() )
  8. out.print("REDUCED ") ;
  9. out.print(" ") ; //Padding
  10. if ( query.isQueryResultStar() )
  11. out.print("*") ;
  12. else
  13. appendNamedExprList(query, out, query.getProject()) ;
  14. out.newline() ;
  15. }

代码示例来源:origin: apache/jena

  1. /**
  2. * Add all the variables from the select handler variable.
  3. *
  4. * @param selectHandler
  5. * The select handler to copy the variables from.
  6. */
  7. public void addAll(SelectHandler selectHandler) {
  8. setReduced(selectHandler.query.isReduced());
  9. setDistinct(selectHandler.query.isDistinct());
  10. query.setQueryResultStar(selectHandler.query.isQueryResultStar());
  11. VarExprList shProjectVars = selectHandler.query.getProject();
  12. VarExprList qProjectVars = query.getProject();
  13. for (Var var : shProjectVars.getVars()) {
  14. // make sure there are no duplicates
  15. if (!qProjectVars.contains(var)) {
  16. qProjectVars.add(var, shProjectVars.getExpr(var));
  17. }
  18. }
  19. aggHandler.addAll( selectHandler.aggHandler );
  20. }

代码示例来源:origin: org.apache.jena/jena-querybuilder

  1. /**
  2. * Add all the variables from the select handler variable.
  3. *
  4. * @param selectHandler
  5. * The select handler to copy the variables from.
  6. */
  7. public void addAll(SelectHandler selectHandler) {
  8. setReduced(selectHandler.query.isReduced());
  9. setDistinct(selectHandler.query.isDistinct());
  10. query.setQueryResultStar(selectHandler.query.isQueryResultStar());
  11. VarExprList shProjectVars = selectHandler.query.getProject();
  12. VarExprList qProjectVars = query.getProject();
  13. for (Var var : shProjectVars.getVars()) {
  14. // make sure there are no duplicates
  15. if (!qProjectVars.contains(var)) {
  16. qProjectVars.add(var, shProjectVars.getExpr(var));
  17. }
  18. }
  19. aggHandler.addAll( selectHandler.aggHandler );
  20. }

代码示例来源:origin: apache/jena

  1. if ( query.isReduced() )
  2. op = OpReduced.create(op) ;

代码示例来源:origin: apache/jena

  1. if ( query.isReduced() )

相关文章