当前位置: 首页>>代码示例>>Java>>正文


Java ColumnRenamer类代码示例

本文整理汇总了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());
}
 
开发者ID:aitoralmeida,项目名称:c4a_data_repository,代码行数:19,代码来源:Pattern.java

示例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();
}
 
开发者ID:aitoralmeida,项目名称:c4a_data_repository,代码行数:21,代码来源:SQL.java

示例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);
}
 
开发者ID:aitoralmeida,项目名称:c4a_data_repository,代码行数:8,代码来源:BlankNodeID.java

示例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);
}
 
开发者ID:aitoralmeida,项目名称:c4a_data_repository,代码行数:8,代码来源:Disjunction.java

示例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);
}
 
开发者ID:aitoralmeida,项目名称:c4a_data_repository,代码行数:8,代码来源:Concatenation.java

示例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);
}
 
开发者ID:aitoralmeida,项目名称:c4a_data_repository,代码行数:8,代码来源:Conjunction.java

示例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);
}
 
开发者ID:aitoralmeida,项目名称:c4a_data_repository,代码行数:5,代码来源:TypedNodeMaker.java

示例8: renameAttributes

import de.fuberlin.wiwiss.d2rq.algebra.ColumnRenamer; //导入依赖的package包/类
public NodeMaker renameAttributes(ColumnRenamer renamer) {
	return new FixedNodeMaker(node, this.isUnique);
}
 
开发者ID:aitoralmeida,项目名称:c4a_data_repository,代码行数:4,代码来源:FixedNodeMaker.java

示例9: renameAttributes

import de.fuberlin.wiwiss.d2rq.algebra.ColumnRenamer; //导入依赖的package包/类
public ValueMaker renameAttributes(ColumnRenamer renamer) {
	return new SQLExpressionValueMaker(renamer.applyTo(expression));
}
 
开发者ID:aitoralmeida,项目名称:c4a_data_repository,代码行数:4,代码来源:SQLExpressionValueMaker.java

示例10: renameAttributes

import de.fuberlin.wiwiss.d2rq.algebra.ColumnRenamer; //导入依赖的package包/类
public ValueMaker renameAttributes(ColumnRenamer renamer) {
	return new Column(renamer.applyTo(this.attribute));
}
 
开发者ID:aitoralmeida,项目名称:c4a_data_repository,代码行数:4,代码来源:Column.java

示例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);
}
 
开发者ID:aitoralmeida,项目名称:c4a_data_repository,代码行数:4,代码来源:ValueDecorator.java

示例12: renameAttributes

import de.fuberlin.wiwiss.d2rq.algebra.ColumnRenamer; //导入依赖的package包/类
public ValueMaker renameAttributes(ColumnRenamer renamer) {
	return this;
}
 
开发者ID:aitoralmeida,项目名称:c4a_data_repository,代码行数:4,代码来源:ConstantValueMaker.java

示例13: renameAttributes

import de.fuberlin.wiwiss.d2rq.algebra.ColumnRenamer; //导入依赖的package包/类
public Expression renameAttributes(ColumnRenamer columnRenamer) {
	return new BooleanToIntegerCaseExpression(base.renameAttributes(columnRenamer));
}
 
开发者ID:aitoralmeida,项目名称:c4a_data_repository,代码行数:4,代码来源:BooleanToIntegerCaseExpression.java

示例14: renameAttributes

import de.fuberlin.wiwiss.d2rq.algebra.ColumnRenamer; //导入依赖的package包/类
public Expression renameAttributes(ColumnRenamer columnRenamer) {
	return new LessThan(expr1.renameAttributes(columnRenamer), expr2.renameAttributes(columnRenamer));
}
 
开发者ID:aitoralmeida,项目名称:c4a_data_repository,代码行数:4,代码来源:LessThan.java

示例15: renameAttributes

import de.fuberlin.wiwiss.d2rq.algebra.ColumnRenamer; //导入依赖的package包/类
public Expression renameAttributes(ColumnRenamer columnRenamer) {
	return new UnaryMinus(base.renameAttributes(columnRenamer));
}
 
开发者ID:aitoralmeida,项目名称:c4a_data_repository,代码行数:4,代码来源:UnaryMinus.java


注:本文中的de.fuberlin.wiwiss.d2rq.algebra.ColumnRenamer类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。