public DataSetFunction buildFunction(DataSetFilterContext filterContext, ColumnFilter columnFilter) {
// Logical expression filter
if (columnFilter instanceof LogicalExprFilter) {
LogicalExprFilter filter = (LogicalExprFilter) columnFilter;
LogicalFunction logicalFunction = new LogicalFunction(filterContext, filter);
for (ColumnFilter filterTerm : filter.getLogicalTerms()) {
DataSetFunction term = buildFunction(filterContext, filterTerm);
logicalFunction.addFunctionTerm(term);
}
return logicalFunction;
}