-
-
Save secondsun/d835d4a56d4d25e4ca9a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void readAllPaged() { | |
Pipe<Data> dataPipe = pipeline.get("data"); | |
List<Data> dataList = dataPipe.readWithFilter(firstPage); | |
PageContext paging = dataPipe.getPageContext(dataList); | |
while (!dataList.isEmpty) | |
dataList = paging.next(); | |
paging = dataPipe.getPageContext(dataList); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void readAllPaged() { | |
Pipe<Data> dataPipe = pipeline.get("data"); | |
List<Data> dataList = dataPipe.readWithFilter(firstPage); | |
if (dataList instanceof PagedList) { | |
PagedList pageList = (PagedList) dataList; | |
while (pageList.next()) | |
Log.out(pageList); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment