// Check for using a tuple
if(!this.dataSet.getType().isTupleType()) {
throw new InvalidProgramException("Method minBy(int) only works on tuples.");
}
return new ReduceOperator<T>(this, new SelectByMinFunction(
(TupleTypeInfo) this.dataSet.getType(), fields));
}