package sort;
/** Combines two IntVectors together. Used with scans or
* reductions.
*/
public class IntVectorCombiner implements ObjectOp {
/** Combines two IntVectors together, the first mutated
* to the result.
* @param o1 the first IntVector (mutated)
* @param o2 the second IntVector (not mutated)
* @return the resulting combined IntVector, pointer
* equal to the first parameter
*/
public Object eval(Object o1, Object o2) {
IntVector iv1 = (IntVector) o1;
IntVector iv2 = (IntVector) o2;
iv1.concat(iv2);
return iv1;
}
}