public static Tuple stringToTuple(String line) {
        // tokenize the line
        String nameParts[] = line.split("\t");

        // create the tuple, setting the first and last names
        Tuple tuple = new Tuple();
        tuple.set(TupleFields.LAST_NAME, nameParts[0]);
        tuple.set(TupleFields.FIRST_NAME, nameParts[1]);
        return tuple;
    }
public static Tuple stringToTuple ( String line ) { String nameParts [ ] = line . split ( "\t" ) ; Tuple tuple = new Tuple ( ) ; tuple . set ( TupleFields . LAST_NAME , nameParts [ 0 ] ) ; tuple . set ( TupleFields . FIRST_NAME , nameParts [ 1 ] ) ; return tuple ; }
Split the input line and return a {@link Tuple} representation of the last and first names.

@param line a line containing a tab-delimited last and first name.
@return a {@link Tuple} representation of the line