Permalink
Browse files

RELEASE 1.0.7.5

    - Fixed a bug in group() functions left from initial 2.7 code with
      conversion of return data - now returns Iterable.
  • Loading branch information...
bwmcadams committed Aug 11, 2010
1 parent ed57a77 commit 35c1aa961066f2821f864a671e79b3fa3f4cf91d
Showing with 472 additions and 5 deletions.
  1. +1 −1 project/build.properties
  2. +4 −4 src/main/scala/mongodb/MongoCollection.scala
  3. +467 −0 src/main/scala/mongodb/tags
View
@@ -3,7 +3,7 @@
project.organization=com.novus
project.name=casbah
sbt.version=0.7.4
-project.version=1.0.7.4
+project.version=1.0.7.5
def.scala.version=2.7.7
build.scala.versions=2.8.0
project.initialize=false
@@ -85,14 +85,14 @@ trait MongoCollectionWrapper extends Logging {
def writeConcern = getWriteConcern
def group(key: DBObject, cond: DBObject, initial: DBObject, reduce: String) = {
- val result = underlying.group(key, cond, initial, reduce).toMap.asScala
- result.map(_._2.asInstanceOf[DBObject]).asInstanceOf[ArrayBuffer[DBObject]]
+ val result = underlying.group(key, cond, initial, reduce)
+ result.map(_._2.asInstanceOf[DBObject])
}
/**
* Perform an absurdly simple grouping with no initial object or reduce function.
*/
- def group(key: DBObject, cond: DBObject): ArrayBuffer[DBObject] = group(key, cond, new BasicDBObject, "function(obj, prev) {}")
- def group(key: DBObject, cond: DBObject, function: String): ArrayBuffer[DBObject] = group(key, cond, new BasicDBObject, function)
+ def group(key: DBObject, cond: DBObject): Iterable[DBObject] = group(key, cond, new BasicDBObject, "function(obj, prev) {}")
+ def group(key: DBObject, cond: DBObject, function: String): Iterable[DBObject] = group(key, cond, new BasicDBObject, function)
/**
* Enables you to call group with the finalize parameter (a function that runs on each
Oops, something went wrong.

0 comments on commit 35c1aa9

Please sign in to comment.