Impact of resource distributions on the competition of species in stream environment