[JAVA-1300] Update Java API Docs getCollection(java.lang.String) Created: 01/Jul/14 Updated: 30/Jan/15 Resolved: 21/Aug/14 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | API, Documentation |
| Affects Version/s: | None |
| Fix Version/s: | 2.13.0, 3.0.0 |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Eoin Brazil | Assignee: | Ross Lawley |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Hi Sam, The Java API documentation for the call getCollection(java.lang.String) are incorrect. It does not actually create the collection when called. The actual (and expected behaviour I believe) is that the collection is actually only created when the first document is inserted into it. The behaviour can be replicated with this simple java example:
which outputs to the console:
and in a connected Mongo shell to the mongod:
Thanks! |
| Comments |
| Comment by Githook User [ 30/Jan/15 ] |
|
Author: {u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}Message: Remove erroneous JavaDoc
|
| Comment by Ross Lawley [ 21/Aug/14 ] |
|
Thanks eoin.brazil |
| Comment by Githook User [ 21/Aug/14 ] |
|
Author: {u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}Message: Remove erroneous JavaDoc
|
| Comment by Githook User [ 21/Aug/14 ] |
|
Author: {u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}Message: Remove erroneous JavaDoc
|