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

com.scudata.dm.sql.simple.Concat 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.dm.sql.simple;

import com.scudata.common.RQException;

public class Concat implements IFunction
{
	public String getFormula(String[] params) 
	{
		StringBuffer sb = new StringBuffer();
		for(int i = 0, len = params.length; i < len; i++)
		{
			if(params[i].isEmpty())
			{
				throw new RQException("Concat????????????Ϊ??");
			}
			if(i > 0)
			{
				sb.append(",");
			}
			sb.append(params[i]);
		}
		return String.format("concat(%s)", sb.toString());
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy