com.scudata.expression.mfn.dw.Import Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of esproc Show documentation
Show all versions of esproc Show documentation
SPL(Structured Process Language) A programming language specially for structured data computing.
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