Package org.bson.types

Examples of org.bson.types.ObjectId.compareTo()


          int numDocsAdded = 0;
          for (BasicDBObject doc: docs) {
            ObjectId docId = doc.getObjectId(DocumentPojo._id_);
            if (null != docId) {
              if (null != ignoreBeforeId) {
                if (docId.compareTo(ignoreBeforeId) <= 0) { // ie docId <= ignoreBeforeId
                  continue;
                }
              }//(end check if this doc has already been seen)             
             
              toModify.getQueueList().add(0, docId);
View Full Code Here


          if (null != _virtualDirStartLimit) {
            if (null != optionalFilterDate) {
              ObjectId altStartId = new ObjectId((int)(optionalFilterDate.getTime()/1000L), 0, 0);
                //(zero out the inc/machine ids so this query is independent to calling service)
             
              if (altStartId.compareTo(_virtualDirStartLimit) > 0) { // (altStartId > _virtualDirStartLimit)
                query.put(MongoDbManager.gte_, altStartId);
              }
              else {
                query.put(MongoDbManager.gte_, _virtualDirStartLimit);               
              }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.