Good idea, but I think you should make the interface(s) return a Number (or a Double), not an Integer. Count should be integral, summations and other aggregates should be floating point.
-------- Original Message -------- Subject: Re: [Neo4j] Aggregation for neo4j From: Dave butlerdi <[1][email protected]> Date: Tue, September 28, 2010 6:34 am To: Neo4j user discussions <[2][email protected]> Looks fine here ... On 28 September 2010 12:28, Andres Taylor <[3][email protected]>wrote: > Hi there! > > I thought that aggregation would be nice to have in neo4j, so that not > everyone has to do it manually... So I coded up what that could look like. > > If this is something that interests you, please, take a look at > [4]svn.neo4j.org/laboratory/components/aggregation/trunk > > I'm specially interested in hearing if the code in this > test< > [5]https://svn.neo4j.org/laboratory/components/aggregation/trunk/src/te st/java/org/neo4j/laboratory/aggregation/AggregatorTest.java > >is > readable. Any feedback is welcome. > > Thanks, > > Andrés > _______________________________________________ > Neo4j mailing list > [6][email protected] > [7]https://lists.neo4j.org/mailman/listinfo/user > -- Regards Dave Butler butlerdi-at-pharm2phork-dot-org Also on Skype as pharm2phork Get Skype here [8]http://www.skype.com/download.html ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. [9]www.mimesweeper.com ********************************************************************** _______________________________________________ Neo4j mailing list [10][email protected] [11]https://lists.neo4j.org/mailman/listinfo/user References 1. mailto:[email protected] 2. mailto:[email protected] 3. mailto:[email protected] 4. http://svn.neo4j.org/laboratory/components/aggregation/trunk 5. https://svn.neo4j.org/laboratory/components/aggregation/trunk/src/test/java/org/neo4j/laboratory/aggregation/AggregatorTest.java 6. mailto:[email protected] 7. https://lists.neo4j.org/mailman/listinfo/user 8. http://www.skype.com/download.html 9. http://www.mimesweeper.com/ 10. mailto:[email protected] 11. https://lists.neo4j.org/mailman/listinfo/user _______________________________________________ Neo4j mailing list [email protected] https://lists.neo4j.org/mailman/listinfo/user

