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

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

import com.scudata.common.RQException;

public class Coalesce 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("Coalesce????????????Ϊ??");
			}
			if(i > 0)
			{
				sb.append(",");
			}
			sb.append(params[i]);
		}
		return String.format("ifn(%s)", sb.toString());
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy