public UDAFExampleAvgEvaluator() { super(); state = new UDAFAvgState(); init(); }
/** Two pointers are created to track the maximal elements in both o and MaxNArray. * The smallest element is added into tempArrayList * Consider the sizes of o and MaxNArray may be different. */ public boolean merge(State o) { if (o != null) { state.n = o.n; state.a = sortedMerge(o.a, state.a, getAscending(), o.n); } return true; }
public MinLongEvaluator() { super(); init(); }
public MinStringEvaluator() { super(); init(); }
public MaxShortEvaluator() { super(); init(); }
public MinShortEvaluator() { super(); init(); }
public MaxFloatEvaluator() { super(); init(); }
public MaxLongEvaluator() { super(); init(); }
public MaxDoubleEvaluator() { super(); init(); }
public MinFloatEvaluator() { super(); init(); }
public MinDoubleEvaluator() { super(); init(); }
public MaxIntEvaluator() { super(); init(); }
public MinIntEvaluator() { super(); init(); }
public MaxStringEvaluator() { super(); init(); }
public boolean merge(DoubleWritable o) { return iterate(o); }
public boolean merge(DoubleWritable o) { return iterate(o); }
public boolean merge(LongWritable o) { return iterate(o); }
public boolean merge(FloatWritable o) { return iterate(o); }
public boolean merge(Text o) { return iterate(o); }