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

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

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

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

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

@Override
public void visitOffset(Query query)
{
  if ( query.hasOffset() )
  {
    out.print("OFFSET  "+query.getOffset()) ;
    out.newline() ; 
  }
}

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

results = new SortedResultSet(results, sortConditions);
if (_query.hasOffset() || _query.hasLimit())
  final long offset = _query.hasOffset() ? _query.getOffset() : 0;
  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 offset = _query.hasOffset() ? _query.getOffset() : 0;
  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 offset = _query.hasOffset() ? _query.getOffset() : 0;
  final long limit = _query.hasLimit() ? _query.getLimit() : Long.MAX_VALUE;
  results = new SlicedResultSet(results, offset, limit);

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

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

代码示例来源: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;

相关文章