本文整理汇总了Java中de.fuberlin.wiwiss.d2rq.parser.RelationBuilder.addOther方法的典型用法代码示例。如果您正苦于以下问题:Java RelationBuilder.addOther方法的具体用法?Java RelationBuilder.addOther怎么用?Java RelationBuilder.addOther使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类de.fuberlin.wiwiss.d2rq.parser.RelationBuilder
的用法示例。
在下文中一共展示了RelationBuilder.addOther方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: buildRelation
import de.fuberlin.wiwiss.d2rq.parser.RelationBuilder; //导入方法依赖的package包/类
protected Relation buildRelation() {
ConnectedDB database = belongsToClassMap.database().connectedDB();
RelationBuilder builder = belongsToClassMap.relationBuilder(database);
builder.addOther(relationBuilder(database));
if (this.refersToClassMap != null) {
builder.addAliased(this.refersToClassMap.relationBuilder(database));
}
for (String pattern: dynamicPropertyPatterns) {
builder.addOther(new PropertyMap(pattern, belongsToClassMap.database()).relationBuilder(database));
}
if (this.limit!=null) {
builder.setLimit(this.limit.intValue());
}
if (this.limitInverse!=null) {
builder.setLimitInverse(this.limitInverse.intValue());
}
if (this.order!=null) {
builder.setOrderSpecs(Collections.singletonList(
new OrderSpec(new AttributeExpr(SQL.parseAttribute(this.order)), this.orderDesc.booleanValue())));
}
return builder.buildRelation();
}
示例2: buildRelation
import de.fuberlin.wiwiss.d2rq.parser.RelationBuilder; //导入方法依赖的package包/类
@Override
protected Relation buildRelation() {
Database db = belongsToClassMap == null ? database : belongsToClassMap.database();
RelationBuilder builder = relationBuilder(db.connectedDB());
builder.addProjection(contentDownloadColumn);
for (ProjectionSpec projection: getMediaTypeValueMaker().projectionSpecs()) {
builder.addProjection(projection);
}
if (belongsToClassMap != null) {
builder.addOther(belongsToClassMap.relationBuilder(db.connectedDB()));
}
return builder.buildRelation();
}