It determines which sharded table a given row of data should be stored in.