本文整理了Java中org.eclipse.rdf4j.query.algebra.Union.getRightArg()
方法的一些代码示例,展示了Union.getRightArg()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Union.getRightArg()
方法的具体详情如下:
包路径:org.eclipse.rdf4j.query.algebra.Union
类名称:Union
方法名:getRightArg
暂无
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-queryalgebra-evaluation
@Override
protected Iteration<BindingSet, QueryEvaluationException> createIteration()
throws QueryEvaluationException
{
return evaluate(union.getRightArg(), bindings);
}
};
代码示例来源:origin: de.tudarmstadt.ukp.inception.rdf4j/rdf4j-queryalgebra-evaluation
@Override
protected Iteration<BindingSet, QueryEvaluationException> createIteration()
throws QueryEvaluationException
{
return evaluate(union.getRightArg(), bindings);
}
};
代码示例来源:origin: eclipse/rdf4j
@Override
public Set<String> getAssuredBindingNames() {
Set<String> bindingNames = new LinkedHashSet<>(16);
bindingNames.addAll(getLeftArg().getAssuredBindingNames());
bindingNames.retainAll(getRightArg().getAssuredBindingNames());
return bindingNames;
}
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client
/**
* @inheritDoc
*/
@Override
public void meet(Union theOp)
throws Exception
{
String aLeft = renderTupleExpr(theOp.getLeftArg());
String aRight = renderTupleExpr(theOp.getRightArg());
mBuffer.append(aLeft).append("\nunion\n").append(aRight);
}
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client
public Set<String> getBindingNames() {
Set<String> bindingNames = new LinkedHashSet<String>(16);
bindingNames.addAll(getLeftArg().getBindingNames());
bindingNames.addAll(getRightArg().getBindingNames());
return bindingNames;
}
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client
public Set<String> getAssuredBindingNames() {
Set<String> bindingNames = new LinkedHashSet<String>(16);
bindingNames.addAll(getLeftArg().getAssuredBindingNames());
bindingNames.retainAll(getRightArg().getAssuredBindingNames());
return bindingNames;
}
代码示例来源:origin: eclipse/rdf4j
@Override
public Set<String> getBindingNames() {
Set<String> bindingNames = new LinkedHashSet<>(16);
bindingNames.addAll(getLeftArg().getBindingNames());
bindingNames.addAll(getRightArg().getBindingNames());
return bindingNames;
}
代码示例来源:origin: eclipse/rdf4j
/**
* @inheritDoc
*/
@Override
public void meet(Union theOp)
throws Exception
{
String aLeft = renderTupleExpr(theOp.getLeftArg());
String aRight = renderTupleExpr(theOp.getRightArg());
mBuffer.append(aLeft).append("\nunion\n").append(aRight);
}
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-queryrender
/**
* @inheritDoc
*/
@Override
public void meet(Union theOp)
throws Exception
{
String aLeft = renderTupleExpr(theOp.getLeftArg());
String aRight = renderTupleExpr(theOp.getRightArg());
mBuffer.append(aLeft).append("\nunion\n").append(aRight);
}
代码示例来源:origin: eclipse/rdf4j
/**
* @inheritDoc
*/
@Override
public void meet(Union theOp)
throws Exception
{
binaryOpMeet(theOp, theOp.getLeftArg(), theOp.getRightArg());
}
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-queryrender
/**
* @inheritDoc
*/
@Override
public void meet(Union theOp)
throws Exception
{
binaryOpMeet(theOp, theOp.getLeftArg(), theOp.getRightArg());
}
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client
/**
* @inheritDoc
*/
@Override
public void meet(Union theOp)
throws Exception
{
binaryOpMeet(theOp, theOp.getLeftArg(), theOp.getRightArg());
}
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-queryalgebra-evaluation
@Override
public void meet(Union union) {
super.meet(union);
TupleExpr leftArg = union.getLeftArg();
TupleExpr rightArg = union.getRightArg();
if (leftArg instanceof EmptySet) {
union.replaceWith(rightArg);
}
else if (rightArg instanceof EmptySet) {
union.replaceWith(leftArg);
}
else if (leftArg instanceof SingletonSet && rightArg instanceof SingletonSet) {
union.replaceWith(leftArg);
}
}
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-queryalgebra-evaluation
@Override
public void meet(Union union) {
super.meet(union);
TupleExpr leftArg = union.getLeftArg();
TupleExpr rightArg = union.getRightArg();
if (leftArg instanceof EmptySet) {
union.replaceWith(rightArg);
}
else if (rightArg instanceof EmptySet) {
union.replaceWith(leftArg);
}
else if (leftArg instanceof SingletonSet && rightArg instanceof SingletonSet) {
union.replaceWith(leftArg);
}
}
代码示例来源:origin: apache/incubator-rya
@Override
public void meet(final Union union) {
boolean filterMoved = false;
if (Sets.intersection(union.getRightArg().getBindingNames(), filterVars).size() > 0) {
relocate(filter, union.getRightArg());
filterMoved = true;
}
if (Sets.intersection(union.getLeftArg().getBindingNames(), filterVars).size() > 0) {
if (filterMoved) {
final Filter clone = new Filter(filter.getArg(), filter.getCondition().clone());
relocate(clone, union.getLeftArg());
} else {
relocate(filter, union.getLeftArg());
}
}
}
代码示例来源:origin: de.tudarmstadt.ukp.inception.rdf4j/rdf4j-queryalgebra-evaluation
@Override
public void meet(Union union) {
super.meet(union);
TupleExpr leftArg = union.getLeftArg();
TupleExpr rightArg = union.getRightArg();
if (leftArg instanceof EmptySet) {
union.replaceWith(rightArg);
}
else if (rightArg instanceof EmptySet) {
union.replaceWith(leftArg);
}
else if (leftArg instanceof SingletonSet && rightArg instanceof SingletonSet) {
union.replaceWith(leftArg);
}
}
代码示例来源:origin: de.tudarmstadt.ukp.inception.rdf4j/rdf4j-queryalgebra-evaluation
@Override
public void meet(Union union) {
super.meet(union);
TupleExpr leftArg = union.getLeftArg();
TupleExpr rightArg = union.getRightArg();
if (leftArg instanceof EmptySet) {
union.replaceWith(rightArg);
}
else if (rightArg instanceof EmptySet) {
union.replaceWith(leftArg);
}
else if (leftArg instanceof SingletonSet && rightArg instanceof SingletonSet) {
union.replaceWith(leftArg);
}
}
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-queryalgebra-evaluation
@Override
public void meet(Union union) {
Filter clone = new Filter();
clone.setCondition(filter.getCondition().clone());
relocate(filter, union.getLeftArg());
relocate(clone, union.getRightArg());
FilterRelocator.relocate(filter);
FilterRelocator.relocate(clone);
}
代码示例来源:origin: de.tudarmstadt.ukp.inception.rdf4j/rdf4j-queryalgebra-evaluation
@Override
public void meet(Union union) {
Filter clone = new Filter();
clone.setCondition(filter.getCondition().clone());
relocate(filter, union.getLeftArg());
relocate(clone, union.getRightArg());
FilterRelocator.relocate(filter);
FilterRelocator.relocate(clone);
}
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-queryalgebra-evaluation
@Override
public void meet(Union union) {
super.meet(union);
TupleExpr leftArg = union.getLeftArg();
TupleExpr rightArg = union.getRightArg();
if (leftArg instanceof Join && rightArg instanceof Join) {
Join leftJoinArg = (Join)leftArg;
Join rightJoin = (Join)rightArg;
if (leftJoinArg.getLeftArg().equals(rightJoin.getLeftArg())) {
// factor out the left-most join argument
Join newJoin = new Join();
union.replaceWith(newJoin);
newJoin.setLeftArg(leftJoinArg.getLeftArg());
newJoin.setRightArg(union);
union.setLeftArg(leftJoinArg.getRightArg());
union.setRightArg(rightJoin.getRightArg());
union.visit(this);
}
}
}
}
内容来源于网络,如有侵权,请联系作者删除!