What is the meaning of Ballcock?

A floating sphere, attached to a lever, that controls the level of liquid in a cistern.

Source: wiktionary.org