jnosql icon indicating copy to clipboard operation
jnosql copied to clipboard

Support to PageCursor

Open FlavioSantoro92 opened this issue 4 years ago • 1 comments

Hi. Some other nosql database uses a cursor instead of an offset for the pagination. Could you add in the interface of the driver a method could accept a generic Object in order to achieve this in new drivers?

FlavioSantoro92 avatar Jun 18 '20 08:06 FlavioSantoro92

Hello Flavio, how are you? By default, the result returns a Stream it is because it is lazy as a cursor. If you're using MongoDB the Stream fits you once both are lazy.

otaviojava avatar Jun 18 '20 09:06 otaviojava