[JAVA-811] DBCursor.skip() & .limit() are limited to integer Created: 22/Apr/13  Updated: 22/Apr/13  Resolved: 22/Apr/13

Status: Closed
Project: Java Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Hannes Magnusson Assignee: Jeffrey Yemin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related

 Description   

At the moment skip and limit setters take int rather than long. This makes it impossible to correctly operate on a mongo collection with number of records exceeding 2.1 Bln.



 Comments   
Comment by Hannes Magnusson [ 22/Apr/13 ]

The wireprotocol actually defines these as int32

int32 numberToSkip; // number of documents to skip
int32 numberToReturn; // number of documents to return
// in the first OP_REPLY batch

http://docs.mongodb.org/meta-driver/latest/legacy/mongodb-wire-protocol/

Generated at Thu Feb 08 08:53:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.