com.scudata.expression.mfn.op.AttachRename Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of esproc Show documentation
Show all versions of esproc Show documentation
SPL(Structured Process Language) A programming language specially for structured data computing.
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