Package fr.eolya.utils.nosql.mongodb

Examples of fr.eolya.utils.nosql.mongodb.MongoDBCollection.createIndex()


    return true;
  }
 
  public boolean updateSourceLog(ISource src, int retention) {
    MongoDBCollection coll = new MongoDBCollection(db,"sources_log");
    coll.createIndex("id_source", false);
    coll.createIndex("createtime", false);

    BasicDBObject doc = new BasicDBObject();
    doc.put("id_source", src.getId());
    doc.put("createtime", new Date().getTime());
View Full Code Here


  }
 
  public boolean updateSourceLog(ISource src, int retention) {
    MongoDBCollection coll = new MongoDBCollection(db,"sources_log");
    coll.createIndex("id_source", false);
    coll.createIndex("createtime", false);

    BasicDBObject doc = new BasicDBObject();
    doc.put("id_source", src.getId());
    doc.put("createtime", new Date().getTime());
    doc.put("log",src.memLogGet());
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.