com.scudata.ide.spl.etl.element.ASelect 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.ide.spl.etl.element;
import com.scudata.chart.Consts;
import com.scudata.ide.spl.etl.EtlConsts;
import com.scudata.ide.spl.etl.ObjectElement;
import com.scudata.ide.spl.etl.ParamInfo;
import com.scudata.ide.spl.etl.ParamInfoList;
/**
* ?????????༭ A.select()
* ??????ǰA??ʾ???
*
* @author Joancy
*
*/
public class ASelect extends ObjectElement {
public String filter;
public boolean one;//1
public boolean z;
public boolean b;
public boolean m;
public boolean c;
public boolean r;
public boolean t;
/**
* ??ȡ???ڽ???༭?IJ?????Ϣ?б?
*/
public ParamInfoList getParamInfoList() {
ParamInfoList paramInfos = new ParamInfoList();
ParamInfo.setCurrent(ASelect.class, this);
paramInfos.add(new ParamInfo("filter"));
String group = "options";
paramInfos.add(group, new ParamInfo("one", Consts.INPUT_CHECKBOX));
paramInfos.add(group, new ParamInfo("z", Consts.INPUT_CHECKBOX));
paramInfos.add(group, new ParamInfo("b", Consts.INPUT_CHECKBOX));
paramInfos.add(group, new ParamInfo("m", Consts.INPUT_CHECKBOX));
paramInfos.add(group, new ParamInfo("c", Consts.INPUT_CHECKBOX));
paramInfos.add(group, new ParamInfo("r", Consts.INPUT_CHECKBOX));
paramInfos.add(group, new ParamInfo("t", Consts.INPUT_CHECKBOX));
return paramInfos;
}
/**
* ??ȡ??????
* ???͵ij???????Ϊ
* EtlConsts.TYPE_XXX
* @return ǰA??ͷ?ĺ???????????EtlConsts.TYPE_SEQUENCE
*/
public byte getParentType() {
return EtlConsts.TYPE_SEQUENCE;
}
/**
* ??ȡ?ú????ķ???????
* @return EtlConsts.TYPE_SEQUENCE
*/
public byte getReturnType() {
return EtlConsts.TYPE_SEQUENCE;
}
/**
* ??ȡ????????SPL????ʽ??ѡ?
*/
public String optionString(){
// 1bzm
if(m){//??@1bzѡ???
return "m";
}
StringBuffer options = new StringBuffer();
if(one){
options.append("1");
}
if(b){
options.append("b");
}
if(z){
options.append("z");
}
if(c){
options.append("c");
}
if(r){
options.append("r");
}
if(t){
options.append("t");
}
return options.toString();
}
/**
* ??ȡ????????SPL????ʽ?ĺ?????
*/
public String getFuncName() {
return "select";
}
/**
* ??ȡ????????SPL????ʽ?ĺ?????
* ??setFuncBody???溯????Ȼ?????ʽ?ĸ?ֵҲ???ǻ????
*/
public String getFuncBody() {
return getExpressionExp(filter);
}
/**
* ???ú?????
* @param funcBody ??????
*/
public boolean setFuncBody(String funcBody) {
filter = getExpression(funcBody);
return true;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy