Package org.mapdb

Examples of org.mapdb.DBMaker.make()


    if (factsDb == null) {
      final DBMaker dbMaker = DBMaker.newMemoryDirectDB()
                                     .transactionDisable()
                                     .asyncWriteEnable()
                                     .cacheSoftRefEnable();
      factsDb = dbMaker.make();
      db = dbMaker.make();
    }
    final TimeAndDimsSerializer timeAndDimsSerializer = new TimeAndDimsSerializer(this);
    return factsDb.createTreeMap("__facts" + UUID.randomUUID())
                  .keySerializer(timeAndDimsSerializer)
View Full Code Here


      final DBMaker dbMaker = DBMaker.newMemoryDirectDB()
                                     .transactionDisable()
                                     .asyncWriteEnable()
                                     .cacheSoftRefEnable();
      factsDb = dbMaker.make();
      db = dbMaker.make();
    }
    final TimeAndDimsSerializer timeAndDimsSerializer = new TimeAndDimsSerializer(this);
    return factsDb.createTreeMap("__facts" + UUID.randomUUID())
                  .keySerializer(timeAndDimsSerializer)
                  .comparator(timeAndDimsSerializer.getComparator())
View Full Code Here

        maker = maker.snapshotEnable();
      if (notxn)
        maker = maker.transactionDisable();
    }

    db = maker.make();

    if (!db.exists("idmap"))
      idmap = db.createHashMap("idmap")
        .valueSerializer(new RecordSerializer())
        .make();
View Full Code Here

                                     .mmapFileEnableIfSupported()
                                     .snapshotEnable();
            if (asyncWritesEnabled) {
                dbMaker.asyncWriteEnable();
            }
            this.journalDB = dbMaker.make();
            this.records = this.journalDB.createTreeMap(RECORDS_FIELD).counterEnable().makeOrGet();
            Atomic.String journalAtomic = this.journalDB.getAtomicString(JOURNAL_ID_FIELD);
            //only write the value the first time
            if (StringUtil.isBlank(journalAtomic.get())) {
                journalAtomic.set("journal_" + UUID.randomUUID().toString());
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.