當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。