本文整理了Java中org.eclipse.rdf4j.query.algebra.Order.getElements()
方法的一些代码示例,展示了Order.getElements()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Order.getElements()
方法的具体详情如下:
包路径:org.eclipse.rdf4j.query.algebra.Order
类名称:Order
方法名:getElements
暂无
代码示例来源: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: 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: 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: eclipse/rdf4j
@Override
public Order clone() {
Order clone = (Order)super.clone();
clone.elements = new ArrayList<>(getElements().size());
for (OrderElem elem : getElements()) {
clone.addElement(elem.clone());
}
return clone;
}
}
代码示例来源:origin: Merck/Halyard
@Override
public boolean push(BindingSet bs) throws InterruptedException {
if (bs != null) try {
ComparableBindingSetWrapper cbsw = new ComparableBindingSetWrapper(parentStrategy, bs, order.getElements(), minorOrder.getAndIncrement());
synchronized (sorter) {
sorter.add(cbsw);
}
return true;
} catch (QueryEvaluationException | IOException e) {
handleException(e);
return false;
}
try {
for (Map.Entry<ComparableBindingSetWrapper, Long> me : sorter) {
for (long i = me.getValue(); i > 0; i--) {
if (!parent.push(me.getKey().bs)) {
return false;
}
}
}
return parent.push(null);
} finally {
sorter.close();
}
}
}, order.getArg(), bindings);
代码示例来源:origin: de.tudarmstadt.ukp.inception.rdf4j/rdf4j-spin
@Override
public void meet(Order node)
throws RDFHandlerException
{
Resource orderByList = valueFactory.createBNode();
handler.handleStatement(
valueFactory.createStatement(subject, SP.ORDER_BY_PROPERTY, orderByList));
ListContext orderByCtx = newList(orderByList);
for (OrderElem elem : node.getElements()) {
elem.visit(this);
}
endList(orderByCtx);
}
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-queryalgebra-evaluation
for (OrderElem element : order.getElements()) {
Value v1 = evaluate(element.getExpr(), o1);
Value v2 = evaluate(element.getExpr(), o2);
代码示例来源:origin: de.tudarmstadt.ukp.inception.rdf4j/rdf4j-queryalgebra-evaluation
for (OrderElem element : order.getElements()) {
Value v1 = evaluate(element.getExpr(), o1);
Value v2 = evaluate(element.getExpr(), o2);
代码示例来源:origin: ontop/ontop
Order order = (Order) node;
MutableQueryModifiers modifiers = program.getQueryModifiers();
for (OrderElem c : order.getElements()) {
ValueExpr expression = c.getExpr();
if (!(expression instanceof Var))
代码示例来源: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-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()));
}
}
}
}
内容来源于网络,如有侵权,请联系作者删除!