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

com.scudata.expression.mfn.dw.Rename Maven / Gradle / Ivy

Go to download

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

There is a newer version: 20240823
Show newest version
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