Permalink
Browse files

Merge branch 'master' of github.com:mongodb/mongo-java-driver

  • Loading branch information...
2 parents 54e38b4 + e60a771 commit 10f4a2fbc81be26b735a26a6e1dda998b6bd771e @erh erh committed Apr 21, 2010
Showing with 7 additions and 1 deletion.
  1. +1 −1 src/main/com/mongodb/ObjectId.java
  2. +6 −0 src/main/com/mongodb/QueryBuilder.java
@@ -38,7 +38,7 @@
*
* @dochub objectids
*/
-public class ObjectId implements Comparable<ObjectId>{
+public class ObjectId implements Comparable<ObjectId> , java.io.Serializable {
static final boolean D = false;
@@ -205,6 +205,12 @@ public QueryBuilder near( double x , double y ){
return this;
}
+ public QueryBuilder near( double x , double y , double maxDistance ){
+ addOperand( "$near" ,
+ new Double[]{ x , y , maxDistance } );
+ return this;
+ }
+
/**
* Creates a <code>DBObject</code> query to be used for the driver's find operations

0 comments on commit 10f4a2f

Please sign in to comment.