Datomic Pagination Java

Is there any examples of using Datomic Pagination in Java?
I’ve the following use case: I’m trying to create an HTTP Rest API …/crawl?pageSize=N&pageNumber=K which would hit our BE and crawl data from Datomic. But so far I’ve been unsuccessful in using any of the existing Datomic API with pagination in Java.