本文整理汇总了Java中de.fuberlin.wiwiss.d2rq.algebra.CompatibleRelationGroup类的典型用法代码示例。如果您正苦于以下问题:Java CompatibleRelationGroup类的具体用法?Java CompatibleRelationGroup怎么用?Java CompatibleRelationGroup使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
CompatibleRelationGroup类属于de.fuberlin.wiwiss.d2rq.algebra包,在下文中一共展示了CompatibleRelationGroup类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: eval
import de.fuberlin.wiwiss.d2rq.algebra.CompatibleRelationGroup; //导入依赖的package包/类
@Override
public QueryIterator eval(QueryIterator input, final ExecutionContext execCxt) {
return new QueryIterRepeatApply(input, execCxt) {
@Override
protected QueryIterator nextStage(Binding binding) {
QueryIterConcat resultIt = new QueryIterConcat(execCxt);
Collection<NodeRelation> tables = new ArrayList<NodeRelation>();
for (OpTableSQL tableOp: tableOps) {
tables.add(tableOp.table().extendWith(binding));
}
for (CompatibleRelationGroup group: CompatibleRelationGroup.groupNodeRelations(tables)) {
resultIt.add(QueryIterTableSQL.create(group.baseRelation(), group.bindingMakers(), execCxt));
}
return resultIt;
}
};
}
示例2: iterator
import de.fuberlin.wiwiss.d2rq.algebra.CompatibleRelationGroup; //导入依赖的package包/类
public QueryIter iterator() {
QueryIterConcat qIter = new QueryIterConcat(context);
for (CompatibleRelationGroup group:
CompatibleRelationGroup.groupNodeRelations(selectedTripleRelations())) {
if (!group.baseRelation().equals(Relation.EMPTY) && group.baseRelation().limit()!=0) {
qIter.add(QueryIterTableSQL.create(
group.baseRelation(), group.bindingMakers(), context));
}
}
return qIter;
}