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

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

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

Query.hasOffset介绍

暂无

代码示例

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

  1. long limit = query.getLimit(), offset = 0;
  2. if (query.hasOffset())
  3. offset = query.getOffset();

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

  1. @Override
  2. public void visitOffset(Query query)
  3. {
  4. if ( query.hasOffset() )
  5. {
  6. out.print("OFFSET "+query.getOffset()) ;
  7. out.newline() ;
  8. }
  9. }

代码示例来源:origin: com.github.galigator.openllet/openllet-jena

  1. results = new SortedResultSet(results, sortConditions);
  2. if (_query.hasOffset() || _query.hasLimit())
  3. final long offset = _query.hasOffset() ? _query.getOffset() : 0;
  4. final long limit = _query.hasLimit() ? _query.getLimit() : Long.MAX_VALUE;
  5. results = new SlicedResultSet(results, offset, limit);

代码示例来源:origin: Galigator/openllet

  1. results = new SortedResultSet(results, sortConditions);
  2. if (_query.hasOffset() || _query.hasLimit())
  3. final long offset = _query.hasOffset() ? _query.getOffset() : 0;
  4. final long limit = _query.hasLimit() ? _query.getLimit() : Long.MAX_VALUE;
  5. results = new SlicedResultSet(results, offset, limit);

代码示例来源:origin: Galigator/openllet

  1. results = new SortedResultSet(results, sortConditions);
  2. if (_query.hasOffset() || _query.hasLimit())
  3. final long offset = _query.hasOffset() ? _query.getOffset() : 0;
  4. final long limit = _query.hasLimit() ? _query.getLimit() : Long.MAX_VALUE;
  5. results = new SlicedResultSet(results, offset, limit);

代码示例来源:origin: com.marklogic/marklogic-jena

  1. query.setLimit(Query.NOLIMIT);
  2. if (query.hasOffset()) {

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

  1. if ( query.hasLimit() || query.hasOffset() )
  2. op = new OpSlice(op, query.getOffset() /*start*/, query.getLimit()/*length*/) ;

代码示例来源:origin: rdfhdt/hdt-java

  1. if(ag==null || !query.getHavingExprs().isEmpty() || !query.getGroupBy().isEmpty() || query.hasLimit() || query.hasOffset() || !( (ag instanceof AggCount) || (ag instanceof AggCountVar) || (ag instanceof AggCountDistinct) || (ag instanceof AggCountVarDistinct)) ) {
  2. return null;

相关文章