本文整理了Java中org.eclipse.rdf4j.query.algebra.Order
类的一些代码示例,展示了Order
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Order
类的具体详情如下:
包路径:org.eclipse.rdf4j.query.algebra.Order
类名称:Order
[英]An order operator that can be used to order bindings as specified by a set of value expressions.
[中]一种order运算符,可用于按一组值表达式指定的顺序对绑定进行排序。
代码示例来源:origin: de.tudarmstadt.ukp.inception.rdf4j/rdf4j-queryalgebra-evaluation
@Override
public void meet(Order node) {
for (OrderElem e : node.getElements()) {
e.visit(this);
}
if (variablesProjected) {
QueryModelNode parent = node.getParentNode();
if (projection == parent) {
node.replaceWith(node.getArg().clone());
node.setArg(projection.clone());
Order replacement = node.clone();
projection.replaceWith(replacement);
QueryModelNode distinct = replacement.getParentNode();
if (distinct instanceof Distinct) {
distinct.replaceWith(new Reduced(replacement.clone()));
}
}
}
}
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client
@Override
public Order clone() {
Order clone = (Order)super.clone();
clone.elements = new ArrayList<OrderElem>(getElements().size());
for (OrderElem elem : getElements()) {
clone.addElement(elem.clone());
}
return clone;
}
}
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client
public Order(TupleExpr arg, OrderElem... elements) {
this(arg);
addElements(elements);
}
代码示例来源:origin: de.tudarmstadt.ukp.inception.rdf4j/rdf4j-spin
@Override
public void meet(Order node)
throws RDFHandlerException
{
// skip over OrderElem - leave this to the OrderVisitor later
node.getArg().visit(this);
}
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client
TupleExpr arg = orderClause.getArg();
extension.setArg(arg);
orderClause.setArg(extension);
result = orderClause;
代码示例来源:origin: eclipse/rdf4j
@Override
public boolean equals(Object other) {
if (other instanceof Order && super.equals(other)) {
Order o = (Order)other;
return elements.equals(o.getElements());
}
return false;
}
代码示例来源:origin: ontop/ontop
Order order = (Order) node;
MutableQueryModifiers modifiers = program.getQueryModifiers();
for (OrderElem c : order.getElements()) {
ValueExpr expression = c.getExpr();
if (!(expression instanceof Var))
modifiers.addOrderCondition(var, direction);
return translate(order.getArg());
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-queryparser-sparql
tupleExpr = new Order(tupleExpr, orderElements);
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-queryrender
Order aOrder = new Order();
aOrder.addElements(mOrderByElems);
代码示例来源:origin: de.tudarmstadt.ukp.inception.rdf4j/rdf4j-spin
private Order visitOrderBy(Resource orderby)
throws RDF4JException
{
Order order = new Order();
Iteration<? extends Resource, QueryEvaluationException> iter = TripleSources.listResources(orderby,
store);
while (iter.hasNext()) {
Resource r = iter.next();
OrderElem orderElem = visitOrderByCondition(r);
order.addElement(orderElem);
}
return order;
}
代码示例来源:origin: eclipse/rdf4j
public void addElements(Iterable<OrderElem> elements) {
for (OrderElem pe : elements) {
addElement(pe);
}
}
代码示例来源:origin: de.tudarmstadt.ukp.inception.rdf4j/rdf4j-spin
if (orderby instanceof Resource) {
Order order = visitOrderBy((Resource)orderby);
order.setArg(projection.getArg());
projection.setArg(order);
代码示例来源:origin: de.tudarmstadt.ukp.inception.rdf4j/rdf4j-spin
@Override
public void meet(Order node)
throws RDFHandlerException
{
node.getArg().visit(this);
}
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-queryparser-sparql
TupleExpr arg = orderClause.getArg();
extension.setArg(arg);
orderClause.setArg(extension);
result = orderClause;
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client
@Override
public boolean equals(Object other) {
if (other instanceof Order && super.equals(other)) {
Order o = (Order)other;
return elements.equals(o.getElements());
}
return false;
}
代码示例来源:origin: eclipse/rdf4j
tupleExpr = new Order(tupleExpr, orderElements);
代码示例来源:origin: eclipse/rdf4j
Order aOrder = new Order();
aOrder.addElements(mOrderByElems);
代码示例来源:origin: eclipse/rdf4j
public void addElements(OrderElem... elements) {
for (OrderElem pe : elements) {
addElement(pe);
}
}
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-queryalgebra-evaluation
@Override
public void meet(Order node) {
for (OrderElem e : node.getElements()) {
e.visit(this);
}
if (variablesProjected) {
QueryModelNode parent = node.getParentNode();
if (projection == parent) {
node.replaceWith(node.getArg().clone());
node.setArg(projection.clone());
Order replacement = node.clone();
projection.replaceWith(replacement);
QueryModelNode distinct = replacement.getParentNode();
if (distinct instanceof Distinct) {
distinct.replaceWith(new Reduced(replacement.clone()));
}
}
}
}
代码示例来源:origin: de.tudarmstadt.ukp.inception.rdf4j/rdf4j-spin
@Override
public void meet(Order node) {
node.getArg().visit(this);
}
内容来源于网络,如有侵权,请联系作者删除!