com.scudata.expression.mfn.dw.Rename 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.dw;
import java.io.IOException;
import com.scudata.common.RQException;
import com.scudata.dm.Context;
import com.scudata.expression.ParamInfo2;
import com.scudata.expression.PhyTableFunction;
/**
* ????????ֶ???
* T.rename(F:F??,??)
* @author RunQian
*
*/
public class Rename extends PhyTableFunction {
public Object calculate(Context ctx) {
ParamInfo2 pi = ParamInfo2.parse(param, "rename", true, false);
String []srcFields = pi.getExpressionStrs1();
String []newFields = pi.getExpressionStrs2();
try {
table.rename(srcFields, newFields, ctx);
} catch (IOException e) {
throw new RQException(e.getMessage(), e);
}
return table;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy