@ SuppressWarnings ( { "unchecked" , "rawtypes" } ) public ReduceOperator < T > maxBy ( int ... fields ) { if ( ! getType ( ) . isTupleType ( ) ) { throw new InvalidProgramException ( "DataSet#maxBy(int...) only works on Tuple types." ) ; } return new ReduceOperator <> ( this , new SelectByMaxFunction ( ( TupleTypeInfo ) getType ( ) , fields ) , Utils . getCallLocationName ( ) ) ; }
Selects an element with maximum value .