Package org.mapdb.DB

Examples of org.mapdb.DB.HTreeMapMaker


    @Before
    public void setupDb() {
        db = DBMaker.newFileDB(UtilsTest.tempDbFile()).closeOnJvmShutdown().mmapFileEnableIfSupported()
                .commitFileSyncDisable().transactionDisable().compressionEnable().freeSpaceReclaimQ(0).make();
        HTreeMapMaker maker = db.createHashMap("products").hasher(Hasher.BYTE_ARRAY)
                .valueSerializer(Serializer.BYTE_ARRAY).keySerializer(Serializer.BYTE_ARRAY).counterEnable();
        map = maker.makeOrGet();
    }
View Full Code Here

TOP

Related Classes of org.mapdb.DB.HTreeMapMaker

Copyright © 2018 www.massapicom. 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.