Changes Query.hasMoreThan to take a long instead of int to be more consistent with select APIs.