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

com.scudata.expression.mfn.table.Rename 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.table;

import com.scudata.dm.Context;
import com.scudata.expression.ParamInfo2;
import com.scudata.expression.TableFunction;

/**
 * ????????ֶν?????????
 * T.rename(F:F',??)
 * @author RunQian
 *
 */
public class Rename extends TableFunction {
	public Object calculate(Context ctx) {
		ParamInfo2 pi = ParamInfo2.parse(param, "rename", true, false);
		String []srcFields = pi.getExpressionStrs1();
		String []newFields = pi.getExpressionStrs2();
		srcTable.rename(srcFields, newFields);
		return srcTable;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy