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

com.scudata.expression.mfn.dw.Import 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 com.scudata.dm.Context;
import com.scudata.dm.cursor.ICursor;
import com.scudata.dw.IPhyTable;
import com.scudata.expression.PhyTableFunction;

/**
 * ???????????
 * T.import(x:C,??;w;k:n)
 * @author RunQian
 *
 */
public class Import extends PhyTableFunction {
	public Object calculate(Context ctx) {
		ICursor cursor = CreateCursor.createCursor(table, param, option, ctx);
		if (option != null && option.indexOf('x') != -1) {
			CreateCursor.setOptionX(cursor, option);
		}
		return cursor.fetch();
	}
	
	public boolean isLeftTypeMatch(Object obj) {
		if (obj instanceof IPhyTable) {
			if (option != null && option.indexOf('v') != -1)
				return false;
			return true;
		}
		
		return false;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy