<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:51:22 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[JAVA-37] Ability to create capped collections in the java driver</title>
                <link>https://jira.mongodb.org/browse/JAVA-37</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;Currently you can only get a collection by calling:&lt;/p&gt;

&lt;p&gt;public DBCollection getCollection(String n)&lt;/p&gt;

&lt;p&gt;Will need:&lt;/p&gt;

&lt;p&gt;public DBCollection getCollection(String n, DBObject o)&lt;/p&gt;

&lt;p&gt;(in order to create a capped collection)&lt;/p&gt;

&lt;p&gt;db.createCollection(&quot;mycoll&quot;, &lt;/p&gt;
{capped:true, size:100000}
&lt;p&gt;)&lt;/p&gt;</description>
                <environment></environment>
        <key id="10618">JAVA-37</key>
            <summary>Ability to create capped collections in the java driver</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="kristina">Kristina Chodorow</assignee>
                                    <reporter username="rn@deftlabs.com">Ryan Nitz</reporter>
                        <labels>
                    </labels>
                <created>Mon, 21 Sep 2009 17:54:28 +0000</created>
                <updated>Tue, 23 Mar 2010 11:29:18 +0000</updated>
                            <resolved>Wed, 23 Sep 2009 11:35:23 +0000</resolved>
                                                    <fixVersion>0.11</fixVersion>
                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="13157" author="eliot" created="Tue, 23 Mar 2010 11:29:18 +0000"  >&lt;p&gt;You can check to see if the collection exists already by calling getCollectionNames&lt;/p&gt;</comment>
                            <comment id="13156" author="kkr_33@yahoo.com" created="Tue, 23 Mar 2010 11:15:20 +0000"  >&lt;p&gt;how could I avoid getting collection already exists message. I was trying to use createcollection and wanted the following functionality.&lt;/p&gt;

&lt;p&gt;If collection exists consider that, otherwise create one. But when my createcollection executes for the second time after creating one its throwing an error saying collection already exists.&lt;/p&gt;</comment>
                            <comment id="10786" author="kristina" created="Wed, 23 Sep 2009 11:35:23 +0000"  >&lt;p&gt;Changed to createCollection(String name, DBObject o).&lt;/p&gt;</comment>
                            <comment id="10782" author="kristina" created="Tue, 22 Sep 2009 11:47:15 +0000"  >&lt;p&gt;Making it createCollection, not getCollection&lt;/p&gt;</comment>
                            <comment id="10781" author="kristina" created="Tue, 22 Sep 2009 11:08:21 +0000"  >&lt;p&gt;Added DBBase.getCollection(String name, DBObject opts).&lt;/p&gt;

&lt;p&gt;All fields in the second param are optional.  An example:&lt;/p&gt;

&lt;p&gt;capped = db.getCollection(name, BasicDBObjectBuilder.start().add(&quot;capped&quot;, true).add(&quot;size&quot;, size).add(&quot;max&quot;, maxNumElements).get());&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrhdlj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>15003</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>