All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.scudata.expression.mfn.op.AttachRename Maven / Gradle / Ivy

Go to download

SPL(Structured Process Language) A programming language specially for structured data computing.

There is a newer version: 20241126
Show newest version
package com.scudata.expression.mfn.op;

import com.scudata.dm.Context;
import com.scudata.dm.op.Rename;
import com.scudata.expression.OperableFunction;
import com.scudata.expression.ParamInfo2;

/**
 * ???α??ܵ????Ӷ??ֶν?????????????
 * op.rename(F:F',??) op???α??ܵ?
 * @author RunQian
 *
 */
public class AttachRename extends OperableFunction {
	public Object calculate(Context ctx) {
		ParamInfo2 pi = ParamInfo2.parse(param, "rename", true, false);
		String []srcFields = pi.getExpressionStrs1();
		String []newFields = pi.getExpressionStrs2();
		
		Rename rename = new Rename(this, srcFields, newFields);
		if (cs != null) {
			rename.setCurrentCell(cs.getCurrent());
		}
		
		return operable.addOperation(rename, ctx);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy