Github user dianfu commented on the issue:
https://github.com/apache/flink/pull/5142
The page number is the number of patterns and so it is usually very small.
The `long` is only needed in theory just as you said MAX_INT * MAX_INT
resulting to MAX_LONG. If this makes sense, then the `HashMap` may be should
also be replaced as the entry number in one page may be MAX_LONG in theory too.
Changing `int` to `long` will introduce state incompatible issue and we
need to take care of that when performing serialization/deserialization. I just
wonder if it is worth making this change.
---