[JAVA-1351] DBCursor.count() and size() return int Created: 05/Aug/14 Updated: 06/Apr/15 Resolved: 06/Apr/15 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | API, Query Operations |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Jeffrey Yemin | Assignee: | Unassigned |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Though the count command supports larger values, DBCursor.count() and DBCursor.size() return int, and silently cast the long to int. We can't really fix this without breaking binary compatibility. Note that the getCount family of methods in DBCollection all properly return a long. |