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

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

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

Query.hasLimit介绍

暂无

代码示例

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

orderingIndex.forEach((k, v) -> traversal = traversal.order().by(__.select(k), v));
if (query.hasLimit()) {
  long limit = query.getLimit(), offset = 0;

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

@Override
public void visitLimit(Query query)
{
  if ( query.hasLimit() )
  {
    out.print("LIMIT   "+query.getLimit()) ;
    out.newline() ; 
  }
}

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

results = new SortedResultSet(results, sortConditions);
if (_query.hasOffset() || _query.hasLimit())
  final long limit = _query.hasLimit() ? _query.getLimit() : Long.MAX_VALUE;
  results = new SlicedResultSet(results, offset, limit);

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

results = new SortedResultSet(results, sortConditions);
if (_query.hasOffset() || _query.hasLimit())
  final long limit = _query.hasLimit() ? _query.getLimit() : Long.MAX_VALUE;
  results = new SlicedResultSet(results, offset, limit);

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

results = new SortedResultSet(results, sortConditions);
if (_query.hasOffset() || _query.hasLimit())
  final long limit = _query.hasLimit() ? _query.getLimit() : Long.MAX_VALUE;
  results = new SlicedResultSet(results, offset, limit);

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

if (!q.hasLimit() || q.getLimit() > this.maxRows) {
  LOGGER.info("Enforced max rows on results by applying LIMIT {} to the query", this.maxRows);
  q.setLimit(this.maxRows);

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

if (!q.hasLimit() || q.getLimit() > this.maxRows) {
  LOGGER.info("Enforced max rows on results by applying LIMIT {} to the query", this.maxRows);
  q.setLimit(this.maxRows);

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

if (query.hasLimit()) {
  limit = query.getLimit();
  query.setLimit(Query.NOLIMIT);

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

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

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

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)) ) {
  return null;

相关文章