Pagination in Document Collection

Hello,

We are planning to use DQL for search documents.

DQL result is a DocumentCollection and may contain big amount of documents.

I'm looking for the way to implement pagination when return the json search result (similar to DAS viewentrycolection)

Thanks