本文整理了Java中com.hp.hpl.jena.query.Query.getHavingExprs
方法的一些代码示例,展示了Query.getHavingExprs
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.getHavingExprs
方法的具体详情如下:
包路径:com.hp.hpl.jena.query.Query
类名称:Query
方法名:getHavingExprs
暂无
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq
@Override
public void visitHaving(Query query1)
{
check("HAVING", query1.getHavingExprs(), query2.getHavingExprs()) ;
}
代码示例来源:origin: com.hp.hpl.jena/arq
public void visitHaving(Query query1)
{
check("HAVING", query1.getHavingExprs(), query2.getHavingExprs()) ;
}
代码示例来源:origin: com.hp.hpl.jena/arq
public void visitHaving(Query query)
{
if ( query.hasHaving() )
x ^= query.getHavingExprs().hashCode() ;
}
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq
@Override
public void visitHaving(Query query)
{
if ( query.hasHaving() )
x ^= query.getHavingExprs().hashCode() ;
}
代码示例来源:origin: com.hp.hpl.jena/arq
public void visitHaving(Query query)
{
if ( query.hasHaving() )
{
out.print("HAVING") ;
for (Expr expr : query.getHavingExprs())
{
out.print(" ") ;
fmtExpr.format(expr) ;
}
out.println() ;
}
}
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq
@Override
public void visitHaving(Query query)
{
if ( query.hasHaving() )
{
out.print("HAVING") ;
for (Expr expr : query.getHavingExprs())
{
out.print(" ") ;
fmtExpr.format(expr) ;
}
out.println() ;
}
}
代码示例来源:origin: Quetzal-RDF/quetzal
/**
* returns all variables mentioned in a query
* @param query
* @return
*/
public static Set<Var> getAllVariables(Query query) {
Set<Var> vars= getAllVariables(query.getQueryPattern());
if (query.hasGroupBy() && query.getGroupBy()!=null && query.getGroupBy().getExprs()!=null) {
for (Map.Entry<Var, Expr> e: query.getGroupBy().getExprs().entrySet()) {
vars.add(e.getKey());
ExprVars.varsMentioned(vars, e.getValue());
}
}
if (query.hasHaving() && query.getHavingExprs()!=null) {
for (Expr e: query.getHavingExprs()) {
ExprVars.varsMentioned(vars, e);
}
}
if (query.hasAggregators() && query.getAggregators()!=null) {
for (ExprAggregator e: query.getAggregators()) {
ExprVars.varsMentioned(vars, e);
}
}
for (String v: query.getResultVars()) {
vars.add(Var.alloc(v));
}
return vars;
}
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq
for (Expr expr : query.getHavingExprs())
代码示例来源:origin: com.hp.hpl.jena/arq
for (Expr expr : query.getHavingExprs())
内容来源于网络,如有侵权,请联系作者删除!