Like most New York State lawmakers, Peter M. Rivera, a nine-term Democratic assemblyman, has never had to worry much about job security. He has won his last two races with more than 10 times as many ...