PageSpecification.<init> - corda

corda / net.corda.core.node.services.vault / PageSpecification / <init>

# <init>

`PageSpecification(pageNumber: Int = -1, pageSize: Int = DEFAULT_PAGE_SIZE)`

PageSpecification allows specification of a page number (starting from DEFAULT_PAGE_NUM) and page size (defaulting to DEFAULT_PAGE_SIZE with a maximum page size of MAX_PAGE_SIZE) Note: we default the page number to DEFAULT_PAGE_SIZE to enable queries without requiring a page specification but enabling detection of large results sets that fall out of the DEFAULT_PAGE_SIZE requirement. MAX_PAGE_SIZE should be used with extreme caution as results may exceed your JVM memory footprint.