public void init(NamedList args) {
this.args = args;
}
public ValueSource parse(FunctionQParser fp) throws ParseException {
ValueSource source = fp.parseValueSource();
ValueSource result = new SimpleFloatFunction(source) {
protected String name() {
return "foo";
}
protected float func(int doc, DocValues vals) {