ScriptFunction filterFn = (ScriptFunction) options.get("filter");
i = new OptionsIter(i, offset, limit, mapFn, filterFn);
ScriptFunction reduceFn = (ScriptFunction) options.get("reduce");
if (reduceFn != null) {
Object result = reduceIter(i, reduceFn);
i = new LiteralIter(new Object[]{result});
}
return i;
}