Minor Update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-expression-widget@91753 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
843de8e007
commit
3d04a1fe1e
|
@ -6,8 +6,6 @@ package org.gcube.portlets.user.td.expressionwidget.server;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.ObjectInputStream;
|
import java.io.ObjectInputStream;
|
||||||
import java.io.ObjectOutputStream;
|
import java.io.ObjectOutputStream;
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import javax.servlet.ServletException;
|
import javax.servlet.ServletException;
|
||||||
import javax.servlet.http.HttpServlet;
|
import javax.servlet.http.HttpServlet;
|
||||||
|
@ -16,12 +14,6 @@ import javax.servlet.http.HttpServletResponse;
|
||||||
import javax.servlet.http.HttpSession;
|
import javax.servlet.http.HttpSession;
|
||||||
|
|
||||||
import org.gcube.data.analysis.tabulardata.expression.Expression;
|
import org.gcube.data.analysis.tabulardata.expression.Expression;
|
||||||
import org.gcube.data.analysis.tabulardata.expression.composite.comparable.GreaterThan;
|
|
||||||
import org.gcube.data.analysis.tabulardata.expression.leaf.ColumnReferencePlaceholder;
|
|
||||||
import org.gcube.data.analysis.tabulardata.expression.leaf.ConstantList;
|
|
||||||
import org.gcube.data.analysis.tabulardata.model.datatype.IntegerType;
|
|
||||||
import org.gcube.data.analysis.tabulardata.model.datatype.value.TDInteger;
|
|
||||||
import org.gcube.data.analysis.tabulardata.model.datatype.value.TDTypeValue;
|
|
||||||
import org.gcube.portlets.user.td.expressionwidget.shared.model.C_Expression;
|
import org.gcube.portlets.user.td.expressionwidget.shared.model.C_Expression;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
@ -94,12 +86,8 @@ public class CExpressionMapServlet extends HttpServlet {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Expression parse(C_Expression exp) {
|
protected Expression parse(C_Expression exp) {
|
||||||
List<TDTypeValue> args = new ArrayList<TDTypeValue>();
|
C_ExpressionParser parser=new C_ExpressionParser();
|
||||||
TDInteger value = new TDInteger(1);
|
return parser.parse(exp);
|
||||||
args.add(value);
|
|
||||||
Expression e = new GreaterThan(new ColumnReferencePlaceholder(
|
|
||||||
new IntegerType(), "1"), new ConstantList(args));
|
|
||||||
return e;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue