本文整理汇总了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));
}
}
}
示例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;
}
示例3: meet
import org.openrdf.query.algebra.OrderElem; //导入依赖的package包/类
@Override
public void meet(OrderElem node) throws RuntimeException {
setSeen(node);
super.meet(node);
}
示例4: meet
import org.openrdf.query.algebra.OrderElem; //导入依赖的package包/类
@Override
public void meet(OrderElem node) throws RuntimeException {
check(node);
super.meet(node);
}
示例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(")");
}
示例6: meet
import org.openrdf.query.algebra.OrderElem; //导入依赖的package包/类
@Override
public void meet(OrderElem arg0) throws Exception {
arg0.visitChildren(this);
}
示例7: meet
import org.openrdf.query.algebra.OrderElem; //导入依赖的package包/类
@Override
public void meet(OrderElem arg0) throws SparqlParserException
{
// NO-OP
}