public static PageRequest createBoundedPageRequest(final long offset, final int length) {
        final PageRequest request = new PageRequest();
        request.setOffset(offset);
        request.setLength(length);
        return request;
    }
Page size to use, e.g. 10 is 10 records
stroom-legacy/stroom-legacy-model_6_1/src/main/java/stroom/legacy/model_6_1/PageRequest.java