public void init() {
    currentPosition = 0;
    pageStartPosition = 0;
    pageEndPosition = Math.min(pageSize, recordsSize);
  }
Utility class for paging for the metrics.
hbase-hbtop/src/main/java/org/apache/hadoop/hbase/hbtop/screen/top/Paging.java