gnu.xquery.util

Class Reduce

Implemented Interfaces:
Named
Known Direct Subclasses:
MinMax

public class Reduce
extends Procedure1

Field Summary

protected Procedure
combiner
static Reduce
sum

Constructor Summary

Reduce(String name, Procedure combiner)

Method Summary

Object
apply1(Object arg)
Object
combine(Object arg1, Object arg2)

Methods inherited from class gnu.mapping.Procedure1

apply0, apply1, apply2, apply3, apply4, applyN, numArgs

Methods inherited from class gnu.mapping.Procedure

apply, apply, apply0, apply1, apply2, apply3, apply4, applyN, check0, check1, check2, check3, check4, checkArgCount, checkN, getName, getProperty, getSetter, getSymbol, match0, match1, match2, match3, match4, matchN, maxArgs, minArgs, name, numArgs, removeProperty, set0, set1, setN, setName, setProperty, setProperty, setSetter, setSymbol, toString

Field Details

combiner

protected Procedure combiner

sum

public static final Reduce sum

Constructor Details

Reduce

public Reduce(String name,
              Procedure combiner)

Method Details

apply1

public Object apply1(Object arg)
            throws Throwable
Overrides:
apply1 in interface Procedure1

combine

public Object combine(Object arg1,
                      Object arg2)
            throws Throwable