use of org.activityinfo.model.query.EmptyColumnView in project activityinfo by bedatadriven.
the class FunctionCallSlot method get.
@Override
public ColumnView get() {
List<ColumnView> arguments = Lists.newArrayList();
for (Slot<ColumnView> argument : argumentSlots) {
ColumnView view = argument.get();
if (view == null) {
throw new IllegalStateException();
}
arguments.add(view);
}
try {
return function.columnApply(arguments.get(0).numRows(), arguments);
} catch (FormulaException e) {
int numRows = arguments.get(0).numRows();
return new EmptyColumnView(ColumnType.STRING, numRows);
}
}
Aggregations