예제 #1
0
 private PagedEdgeList getOtherPage(long otherPagesCursor) throws FlockException, IOException {
   EdgeQuery nextPageQuery = edgeQuery.setPage(edgeQuery.getPage().setCursor(otherPagesCursor));
   List<EdgeResults> results;
   try {
     results = backingFlockClient.select_edges(Collections.singletonList(nextPageQuery));
   } catch (TException e) {
     throw new IOException(e);
   }
   return new PagedEdgeList(backingFlockClient, nextPageQuery, results.get(0));
 }
예제 #2
0
 public boolean hasPreviousPage() {
   return edgeQuery.getPage().getCursor() != -1;
 }