Question says all.
Pokémon are limited to 510 effort points in total.
source Unless the horde somehow gave you an additional 260 EVs, you won't hit the maximum. If you were already at the maximum when you knocked out a horde, then your Pokemon will simply not gain or lose any EVs.