com.hp.hpl.jena.query.Query.addOrderBy()方法的使用及代码示例

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

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

Query.addOrderBy介绍

暂无

代码示例

代码示例来源:origin: com.hp.hpl.jena/arq

public void addOrderBy(Expr expr, int direction)
{
  SortCondition sc = new SortCondition(expr, direction) ;
  addOrderBy(sc) ;
}

代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

public void addOrderBy(Expr expr, int direction)
{
  SortCondition sc = new SortCondition(expr, direction) ;
  addOrderBy(sc) ;
}

代码示例来源:origin: com.hp.hpl.jena/arq

public void addOrderBy(Node var, int direction)
{ 
  if ( ! var.isVariable() )
    throw new QueryException("Not a variable: "+var) ;
  SortCondition sc = new SortCondition(var, direction) ;
  addOrderBy(sc) ;
}

代码示例来源:origin: com.hp.hpl.jena/arq

public void visit(OpOrder opOrder)
{
  List<SortCondition> x = opOrder.getConditions() ;
  for ( SortCondition sc : x )
    query.addOrderBy(sc);
  opOrder.getSubOp().visit(this) ;
}

代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

public void addOrderBy(Node var, int direction)
{ 
  if ( ! var.isVariable() )
    throw new QueryException("Not a variable: "+var) ;
  SortCondition sc = new SortCondition(var, direction) ;
  addOrderBy(sc) ;
}

代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

@Override
public void visit(OpOrder opOrder)
{
  List<SortCondition> x = opOrder.getConditions() ;
  for ( SortCondition sc : x )
    query.addOrderBy(sc);
  opOrder.getSubOp().visit(this) ;
}

代码示例来源:origin: com.hp.hpl.jena/arq

public void addOrderBy(String varName, int direction)
{ 
  varName = Var.canonical(varName) ;
  SortCondition sc = new SortCondition(new ExprVar(varName), direction) ;
  addOrderBy(sc) ;
}

代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

public void addOrderBy(String varName, int direction)
{ 
  varName = Var.canonical(varName) ;
  SortCondition sc = new SortCondition(new ExprVar(varName), direction) ;
  addOrderBy(sc) ;
}

代码示例来源:origin: com.github.ansell.pellet/pellet-query

q.addOrderBy( expression54, Query.ORDER_ASCENDING ); 
q.addOrderBy( expression55, Query.ORDER_DESCENDING ); 
q.addOrderBy( expression56, Query.ORDER_DEFAULT );

代码示例来源:origin: com.hp.hpl.jena/arq

getQuery().addOrderBy(expr, direction) ;
else
  getQuery().addOrderBy(v, direction) ;

代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

getQuery().addOrderBy(expr, direction) ;
else
  getQuery().addOrderBy(v, direction) ;

代码示例来源:origin: com.hp.hpl.jena/arq

getQuery().addOrderBy(expr, direction) ;
else
  getQuery().addOrderBy(v, direction) ;

代码示例来源:origin: com.hp.hpl.jena/arq

getQuery().addOrderBy(expr, direction) ;
else
  getQuery().addOrderBy(v, direction) ;

代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

getQuery().addOrderBy(expr, direction) ;
else
  getQuery().addOrderBy(v, direction) ;

代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

getQuery().addOrderBy(expr, direction) ;
else
  getQuery().addOrderBy(v, direction) ;

相关文章