本文整理汇总了Java中de.fuberlin.wiwiss.d2rq.algebra.ColumnRenamer类的典型用法代码示例。如果您正苦于以下问题:Java ColumnRenamer类的具体用法?Java ColumnRenamer怎么用?Java ColumnRenamer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ColumnRenamer类属于de.fuberlin.wiwiss.d2rq.algebra包,在下文中一共展示了ColumnRenamer类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: renameAttributes
import de.fuberlin.wiwiss.d2rq.algebra.ColumnRenamer; //导入依赖的package包/类
public ValueMaker renameAttributes(ColumnRenamer renames) {
int index = 0;
StringBuffer newPattern = new StringBuffer(this.firstLiteralPart);
while (index < this.columns.size()) {
Attribute column = columns.get(index);
ColumnFunction function = columnFunctions.get(index);
newPattern.append(DELIMITER);
newPattern.append(renames.applyTo(column).qualifiedName());
if (function.name() != null) {
newPattern.append("|");
newPattern.append(function.name());
}
newPattern.append(DELIMITER);
newPattern.append(this.literalParts.get(index));
index++;
}
return new Pattern(newPattern.toString());
}
示例2: replaceColumnsInExpression
import de.fuberlin.wiwiss.d2rq.algebra.ColumnRenamer; //导入依赖的package包/类
public static String replaceColumnsInExpression(String expression, ColumnRenamer columnRenamer) {
StringBuffer result = new StringBuffer();
Matcher match = attributeRegexConservative.matcher(expression);
boolean matched = match.find();
int firstPartEnd = matched ? (match.start(1) != -1 ? match.start(1)
: match.start(2))
: expression.length();
result.append(expression.substring(0, firstPartEnd));
while (matched) {
Attribute column = new Attribute(match.group(1), match.group(2), match.group(3));
result.append(columnRenamer.applyTo(column).qualifiedName());
int nextPartStart = match.end();
matched = match.find();
int nextPartEnd = matched ? (match.start(1) != -1 ? match.start(1)
: match.start(2))
: expression.length();
result.append(expression.substring(nextPartStart, nextPartEnd));
}
return result.toString();
}
示例3: renameAttributes
import de.fuberlin.wiwiss.d2rq.algebra.ColumnRenamer; //导入依赖的package包/类
public ValueMaker renameAttributes(ColumnRenamer renamer) {
List<Attribute> replacedAttributes = new ArrayList<Attribute>();
for (Attribute attribute: attributes) {
replacedAttributes.add(renamer.applyTo(attribute));
}
return new BlankNodeID(this.classMapID, replacedAttributes);
}
示例4: renameAttributes
import de.fuberlin.wiwiss.d2rq.algebra.ColumnRenamer; //导入依赖的package包/类
public Expression renameAttributes(ColumnRenamer columnRenamer) {
Set<Expression> renamedExpressions = new HashSet<Expression>();
for (Expression expression: expressions) {
renamedExpressions.add(expression.renameAttributes(columnRenamer));
}
return Disjunction.create(renamedExpressions);
}
示例5: renameAttributes
import de.fuberlin.wiwiss.d2rq.algebra.ColumnRenamer; //导入依赖的package包/类
public Expression renameAttributes(ColumnRenamer columnRenamer) {
List<Expression> renamedExpressions = new ArrayList<Expression>(parts.size());
for (Expression expression: parts) {
renamedExpressions.add(columnRenamer.applyTo(expression));
}
return new Concatenation(renamedExpressions);
}
示例6: renameAttributes
import de.fuberlin.wiwiss.d2rq.algebra.ColumnRenamer; //导入依赖的package包/类
public Expression renameAttributes(ColumnRenamer columnRenamer) {
Set<Expression> renamedExpressions = new HashSet<Expression>();
for (Expression expression: expressions) {
renamedExpressions.add(expression.renameAttributes(columnRenamer));
}
return Conjunction.create(renamedExpressions);
}
示例7: renameAttributes
import de.fuberlin.wiwiss.d2rq.algebra.ColumnRenamer; //导入依赖的package包/类
public NodeMaker renameAttributes(ColumnRenamer renamer) {
return new TypedNodeMaker(this.nodeType,
this.valueMaker.renameAttributes(renamer), this.isUnique);
}
示例8: renameAttributes
import de.fuberlin.wiwiss.d2rq.algebra.ColumnRenamer; //导入依赖的package包/类
public NodeMaker renameAttributes(ColumnRenamer renamer) {
return new FixedNodeMaker(node, this.isUnique);
}
示例9: renameAttributes
import de.fuberlin.wiwiss.d2rq.algebra.ColumnRenamer; //导入依赖的package包/类
public ValueMaker renameAttributes(ColumnRenamer renamer) {
return new SQLExpressionValueMaker(renamer.applyTo(expression));
}
示例10: renameAttributes
import de.fuberlin.wiwiss.d2rq.algebra.ColumnRenamer; //导入依赖的package包/类
public ValueMaker renameAttributes(ColumnRenamer renamer) {
return new Column(renamer.applyTo(this.attribute));
}
示例11: renameAttributes
import de.fuberlin.wiwiss.d2rq.algebra.ColumnRenamer; //导入依赖的package包/类
public ValueMaker renameAttributes(ColumnRenamer renamer) {
return new ValueDecorator(this.base.renameAttributes(renamer), this.constraints, this.translator);
}
示例12: renameAttributes
import de.fuberlin.wiwiss.d2rq.algebra.ColumnRenamer; //导入依赖的package包/类
public ValueMaker renameAttributes(ColumnRenamer renamer) {
return this;
}
示例13: renameAttributes
import de.fuberlin.wiwiss.d2rq.algebra.ColumnRenamer; //导入依赖的package包/类
public Expression renameAttributes(ColumnRenamer columnRenamer) {
return new BooleanToIntegerCaseExpression(base.renameAttributes(columnRenamer));
}
示例14: renameAttributes
import de.fuberlin.wiwiss.d2rq.algebra.ColumnRenamer; //导入依赖的package包/类
public Expression renameAttributes(ColumnRenamer columnRenamer) {
return new LessThan(expr1.renameAttributes(columnRenamer), expr2.renameAttributes(columnRenamer));
}
示例15: renameAttributes
import de.fuberlin.wiwiss.d2rq.algebra.ColumnRenamer; //导入依赖的package包/类
public Expression renameAttributes(ColumnRenamer columnRenamer) {
return new UnaryMinus(base.renameAttributes(columnRenamer));
}