当前位置: 首页>>代码示例>>Java>>正文


Java OrderElem类代码示例

本文整理汇总了Java中org.openrdf.query.algebra.OrderElem的典型用法代码示例。如果您正苦于以下问题:Java OrderElem类的具体用法?Java OrderElem怎么用?Java OrderElem使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


OrderElem类属于org.openrdf.query.algebra包,在下文中一共展示了OrderElem类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: OrderByModifier

import org.openrdf.query.algebra.OrderElem; //导入依赖的package包/类
public OrderByModifier(final TupleExpr tupleExpr, final Order order) {
	_tupleExpr = tupleExpr;
	_order = order;
	_variables = new HashMap<Var, Boolean>();

	List<OrderElem> elems = order.getElements();
	Iterator<OrderElem> iter = elems.iterator();

	while (iter.hasNext()) {
		OrderElem ele = iter.next();
		boolean ascending = ele.isAscending();
		ValueExpr ex = ele.getExpr();

		if (ex instanceof Var) {
			_variables.put((Var) ex, new Boolean(ascending));
		}
	}
}
 
开发者ID:cumulusrdf,项目名称:cumulusrdf,代码行数:19,代码来源:CumulusQueryOptimizer.java

示例2: Query

import org.openrdf.query.algebra.OrderElem; //导入依赖的package包/类
private Query(//
        final QueryModelNode root, //
        final Form form, //
        @Nullable final Modifier modifier, //
        @Nullable final Iterable<? extends ProjectionElem> selectist, //
        @Nullable final TupleExpr construct, //
        @Nullable final Dataset from, //
        final TupleExpr where, //
        @Nullable final Iterable<? extends ProjectionElem> groupByt, //
        @Nullable final ValueExpr having, //
        @Nullable final Iterable<? extends OrderElem> orderBy, //
        @Nullable final Long offset, //
        @Nullable final Long limit) {

    this.root = Preconditions.checkNotNull(root);
    this.form = Preconditions.checkNotNull(form);
    this.modifier = modifier;
    this.select = selectist == null ? ImmutableList.<ProjectionElem>of() : ImmutableList
            .copyOf(selectist);
    this.construct = construct;
    this.from = from;
    this.where = Preconditions.checkNotNull(where);
    this.groupBy = groupByt == null ? ImmutableList.<ProjectionElem>of() : ImmutableList
            .copyOf(groupByt);
    this.having = having;
    this.orderBy = orderBy == null ? ImmutableList.<OrderElem>of() : ImmutableList
            .copyOf(orderBy);
    this.offset = offset;
    this.limit = limit;
}
 
开发者ID:dkmfbk,项目名称:knowledgestore,代码行数:31,代码来源:SPARQLRenderer.java

示例3: meet

import org.openrdf.query.algebra.OrderElem; //导入依赖的package包/类
@Override
public void meet(OrderElem node) throws RuntimeException {
	setSeen(node);
	super.meet(node);
}
 
开发者ID:lszeremeta,项目名称:neo4j-sparql-extension-yars,代码行数:6,代码来源:SeenVisitor.java

示例4: meet

import org.openrdf.query.algebra.OrderElem; //导入依赖的package包/类
@Override
public void meet(OrderElem node) throws RuntimeException {
	check(node);
	super.meet(node);
}
 
开发者ID:lszeremeta,项目名称:neo4j-sparql-extension-yars,代码行数:6,代码来源:ConsistencyVisitor.java

示例5: meet

import org.openrdf.query.algebra.OrderElem; //导入依赖的package包/类
@Override
public void meet(final OrderElem n) {
    emit(n.isAscending() ? "ASC(" : "DESC(").emit(n.getExpr()).emit(")");
}
 
开发者ID:dkmfbk,项目名称:knowledgestore,代码行数:5,代码来源:SPARQLRenderer.java

示例6: meet

import org.openrdf.query.algebra.OrderElem; //导入依赖的package包/类
@Override
public void meet(OrderElem arg0) throws Exception {
	arg0.visitChildren(this);
}
 
开发者ID:markusstocker,项目名称:emrooz,代码行数:5,代码来源:SparqlQueryModelVisitor.java

示例7: meet

import org.openrdf.query.algebra.OrderElem; //导入依赖的package包/类
@Override
public void meet(OrderElem arg0) throws SparqlParserException
{
   // NO-OP
}
 
开发者ID:obidea,项目名称:semantika,代码行数:6,代码来源:SparqlQueryHandler.java


注:本文中的org.openrdf.query.algebra.OrderElem类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。