<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:51:30 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-99] adding optional finalyze,keyf parameters to group funtion</title>
                <link>https://jira.mongodb.org/browse/JAVA-99</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;&amp;gt;db.collection.group &amp;#8212; &lt;/p&gt;

&lt;p&gt;supports many arguments namely key,reduce,initial,keyf,cond,finalyze. &lt;br/&gt;
But java driver for this function accepts only four of them -&amp;gt; &lt;br/&gt;
key,reduce,initial,cond. How could we use finalyze with java driver. &lt;/p&gt;</description>
                <environment>software</environment>
        <key id="11680">JAVA-99</key>
            <summary>adding optional finalyze,keyf parameters to group funtion</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</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="-1">Unassigned</assignee>
                                    <reporter username="kkr_33@yahoo.com">kiran k</reporter>
                        <labels>
                    </labels>
                <created>Fri, 2 Apr 2010 14:34:17 +0000</created>
                <updated>Sun, 18 Aug 2013 15:38:15 +0000</updated>
                            <resolved>Sun, 18 Aug 2013 15:38:15 +0000</resolved>
                                                                    <component>API</component>
                                        <votes>1</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="405730" author="jeff.yemin" created="Sun, 18 Aug 2013 15:38:15 +0000"  >&lt;p&gt;This was fixed a long time ago, but never resolved.&lt;/p&gt;</comment>
                            <comment id="63025" author="remonvv" created="Thu, 27 Oct 2011 13:33:22 +0000"  >&lt;p&gt;Are there actually real-world use cases for group that aren&apos;t covered by m/r? Might be worth considering deprecating group in favor of either m/r or the new aggregation framework.&lt;/p&gt;</comment>
                            <comment id="20267" author="eliot" created="Fri, 12 Nov 2010 20:08:46 +0000"  >&lt;p&gt;whole api might change for group&lt;/p&gt;</comment>
                            <comment id="18677" author="eliot" created="Wed, 29 Sep 2010 20:25:06 +0000"  >&lt;p&gt;Still don&apos;t like any syntax.&lt;br/&gt;
Maybe a Group class?&lt;br/&gt;
Also ugly&lt;/p&gt;</comment>
                            <comment id="17021" author="eliot" created="Wed, 18 Aug 2010 19:48:28 +0000"  >&lt;p&gt;Want to make the api a bit nicer before doing anything.&lt;br/&gt;
You can use direct command syntax till then.&lt;/p&gt;</comment>
                            <comment id="17018" author="eliot" created="Wed, 18 Aug 2010 19:33:36 +0000"  >&lt;p&gt;You can always do a commend directly.&lt;br/&gt;
If you look at how group is implemented, very easy to do whatever you want.&lt;/p&gt;

&lt;p&gt;    public DBObject group( DBObject key , DBObject cond , DBObject initial , String reduce )&lt;br/&gt;
        throws MongoException &lt;/p&gt;
{
        CommandResult res =  _db.command( new BasicDBObject( &quot;group&quot; , 
                                                             BasicDBObjectBuilder.start()
                                                             .add( &quot;ns&quot; , getName() )
                                                             .add( &quot;key&quot; , key )
                                                             .add( &quot;cond&quot; , cond )
                                                             .add( &quot;$reduce&quot; , reduce )
                                                             .add( &quot;initial&quot; , initial )
                                                             .get() ) );
        res.throwOnError();
        return (DBObject)res.get( &quot;retval&quot; );
    }</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|hrhd8f:</customfieldvalue>

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