本文整理了Java中org.openrdf.query.algebra.Distinct.getArg()
方法的一些代码示例,展示了Distinct.getArg()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Distinct.getArg()
方法的具体详情如下:
包路径:org.openrdf.query.algebra.Distinct
类名称:Distinct
方法名:getArg
暂无
代码示例来源:origin: org.openrdf.sesame/sesame-queryrender
/**
* @inheritDoc
*/
@Override
public void meet(final Distinct theDistinct)
throws Exception
{
mDistinct = true;
theDistinct.getArg().visit(this);
}
代码示例来源:origin: org.openrdf.sesame/sesame-queryalgebra-evaluation
@Override
public void meet(Distinct node) {
node.getArg().visit(this);
}
代码示例来源:origin: apache/marmotta
@Override
public void meet(Distinct node) {
node.getArg().visit(this);
}
代码示例来源:origin: org.openrdf.alibaba/alibaba-sail-federation
@Override
public void meet(Distinct node) throws RepositoryException {
boolean before = reduce;
try {
reduce = true;
node.getArg().visit(this);
} finally {
reduce = before;
}
if (patternNode == null) {
return;
}
this.distinct = true;
this.patternNode = node;
}
代码示例来源:origin: org.openrdf.sesame/sesame-sail-federation
@Override
public void meet(Distinct node)
throws RepositoryException
{
boolean before = reduce;
try {
reduce = true;
node.getArg().visit(this);
}
finally {
reduce = before;
}
if (patternNode == null) {
return;
}
this.distinct = true;
this.patternNode = node;
}
代码示例来源:origin: org.openrdf.sesame/sesame-sail-rdbms
@Override
public void meet(Distinct node)
throws RuntimeException
{
super.meet(node);
if (node.getArg() instanceof SelectQuery) {
SelectQuery query = (SelectQuery)node.getArg();
query.setDistinct(true);
node.replaceWith(query);
}
}
代码示例来源:origin: org.openrdf.sesame/sesame-queryalgebra-evaluation
public CloseableIteration<BindingSet, QueryEvaluationException> evaluate(Distinct distinct,
BindingSet bindings)
throws QueryEvaluationException
{
return new DistinctIteration<BindingSet, QueryEvaluationException>(
evaluate(distinct.getArg(), bindings));
}
代码示例来源:origin: org.apache.rya/mongodb.rya
@Override
public void meet(Distinct distinctNode) throws Exception {
distinctNode.visitChildren(this);
if (distinctNode.getArg() instanceof AggregationPipelineQueryNode && distinctNode.getParentNode() != null) {
AggregationPipelineQueryNode pipelineNode = (AggregationPipelineQueryNode) distinctNode.getArg();
pipelineNode.distinct();
distinctNode.replaceWith(pipelineNode);
}
}
代码示例来源:origin: org.openrdf.sesame/sesame-spin
@Override
public void meet(Distinct node)
throws RDFHandlerException
{
node.getArg().visit(this);
handler.handleStatement(
valueFactory.createStatement(subject, SP.DISTINCT_PROPERTY, BooleanLiteral.TRUE));
}
代码示例来源:origin: org.openrdf.sesame/sesame-queryalgebra-evaluation
public CloseableIteration<BindingSet, QueryEvaluationException> evaluate(final Difference difference,
final BindingSet bindings)
throws QueryEvaluationException
{
Iteration<BindingSet, QueryEvaluationException> leftArg, rightArg;
leftArg = new DelayedIteration<BindingSet, QueryEvaluationException>() {
@Override
protected Iteration<BindingSet, QueryEvaluationException> createIteration()
throws QueryEvaluationException
{
return evaluate(difference.getLeftArg(), bindings);
}
};
rightArg = new DelayedIteration<BindingSet, QueryEvaluationException>() {
@Override
protected Iteration<BindingSet, QueryEvaluationException> createIteration()
throws QueryEvaluationException
{
return evaluate(difference.getRightArg(), bindings);
}
};
return new LimitedSizeSPARQLMinusIteration(leftArg, rightArg, used, maxSize);
}
代码示例来源:origin: apache/marmotta
@Override
public void meet(Distinct node) throws RuntimeException {
TupleExpr child = node.getArg();
if(!isSupported(child) && child instanceof UnaryTupleOperator) {
UnaryTupleOperator replacement = (UnaryTupleOperator)child.clone();
// switch positions of child and node
node.replaceWith(replacement);
node.setArg(((UnaryTupleOperator) child).getArg().clone());
replacement.setArg(node.clone());
// visit the newly inserted replacement node (i.e. the clone of child now containing the old "node" as
// child, so "node" can be bubbled down further if needed)
replacement.visit(this);
}
}
内容来源于网络,如有侵权,请联系作者删除!