src/main/java/it/unibo/bd1819/reducers/SortReducer.java
private Text extractNewValue(final Text oldValue, final IntWritable moviesDirected) {
        final String directorID = oldValue.toString().split(CUSTOM_VALUE_SEPARATOR)[0] + CUSTOM_VALUE_SEPARATOR;
        return new Text("Movies Directed: " + (-moviesDirected.get()) + ", Most Frequently actors: " +
                oldValue.toString().replace(directorID,""));
    }
/**
     * Create a new value for the tuple, containing the number of directed movies and the three actors with
     * the respective number of collaboration.
     * @param oldValue the old value of the tuples
     * @param moviesDirected the old key of the record, the number of movies directed
     * @return a Text containing the new value
     */
Create a new value for the tuple, containing the number of directed movies and the three actors with
the respective number of collaboration.
@param oldValue the old value of the tuples
@param moviesDirected the old key of the record, the number of movies directed
@return a Text containing the new value
Create a new value for the tuple containing the number of directed movies and the three actors with the respective number of collaboration . @param oldValue the old value of the tuples @param moviesDirected the old key of the record the number of movies directed @return a Text containing the new value
private Text extractNewValue(final Text oldValue, final IntWritable moviesDirected) {
        final String directorID = oldValue.toString().split(CUSTOM_VALUE_SEPARATOR)[0] + CUSTOM_VALUE_SEPARATOR;
        return new Text("Movies Directed: " + (-moviesDirected.get()) + ", Most Frequently actors: " +
                oldValue.toString().replace(directorID,""));
    }
private Text extractNewValue ( final Text oldValue , final IntWritable moviesDirected ) { final String directorID = oldValue . toString ( ) . split ( CUSTOM_VALUE_SEPARATOR ) [ 0 ] + CUSTOM_VALUE_SEPARATOR ; return new Text ( "Movies Directed: " + ( - moviesDirected . get ( ) ) + ", Most Frequently actors: " + oldValue . toString ( ) . replace ( directorID , "" ) ) ; }
Create a new value for the tuple, containing the number of directed movies and the three actors with
 the respective number of collaboration.
Create a new value for the tuple containing the number of directed movies and the three actors with the respective number of collaboration .