IMHO this would be much clearer expressed as

```
if (partition.ordinality() < 10)
```