src/main/java/it/unibo/bd1819/mapper/ActorJoinMapper.java
private String filterByRole(final Text text) {
        String line = text.toString();
        String[] values = line.split(VALUE_SEPARATOR);
        if(values[2].equals(ROLE) || values[2].equals(FEMALE_ROLE)) return values[1];
        else return EMPTY_VALUE;
    }
/**
     * Filter the lines by role and return the ID of the directors
     * @param text the text to filter
     * @return a string containing the director ID
     */
Filter the lines by role and return the ID of the directors
@param text the text to filter
@return a string containing the director ID
Filter the lines by role and return the ID of the directors @param text the text to filter @return a string containing the director ID
private String filterByRole(final Text text) {
        String line = text.toString();
        String[] values = line.split(VALUE_SEPARATOR);
        if(values[2].equals(ROLE) || values[2].equals(FEMALE_ROLE)) return values[1];
        else return EMPTY_VALUE;
    }
private String filterByRole ( final Text text ) { String line = text . toString ( ) ; String [ ] values = line . split ( VALUE_SEPARATOR ) ; if ( values [ 2 ] . equals ( ROLE ) || values [ 2 ] . equals ( FEMALE_ROLE ) ) return values [ 1 ] ; else return EMPTY_VALUE ; }
Filter the lines by role and return the ID of the directors
 @param text the text to filter
 @return a string containing the director ID
Filter the lines by role and return the ID of the directors @param text the text to filter @return a string containing the director ID