public PageOfCollections fetchPage(PageOfCollections page,SolrZkClient zkClient) throws KeeperException, InterruptedException {
  List<String> children=getCollections(zkClient);
  page.selected=children;
  if (page.start == 0 && page.rows == -1 && page.filter == null && children.size() > 10) {
    page.rows=20;
    page.start=0;
  }
  if (page.filterType == FilterType.name && page.filter != null)   children=page.applyNameFilter(children);
  if (page.filterType != FilterType.status)   page.selectPage(children);
  return page;
}

public PageOfCollections fetchPage ( PageOfCollections page , SolrZkClient zkClient ) throws KeeperException , InterruptedException { List < String > children = getCollections ( zkClient ) ; page . selected = children ; if ( page . start == 0 && page . rows == - 1 && page . filter == null && children . size ( ) > 10 ) { page . rows = 20 ; page . start = 0 ; } if ( page . filterType == FilterType . name && page . filter != null ) children = page . applyNameFilter ( children ) ; if ( page . filterType != FilterType . status ) page . selectPage ( children ) ; return page ; }
gets the requested page of collections after applying filters and offsets .
