Examples of configureIndex()


Examples of com.mobixess.jodb.core.JODBSessionContainer.configureIndex()

        testFile.delete();
        if(testFile.exists()){
            throw new Exception();
        }
        JODBSessionContainer sessionContainer = getContainerForFile(testFile);
        sessionContainer.configureIndex(ObjectA.class, "_val2", true);
       
        for (int i = 1000; i  >= 0; --i) {
            ObjectA objectA = new ObjectA((byte)2,(byte)i,null);
            sessionContainer.set(objectA);
        }
View Full Code Here

Examples of com.mobixess.jodb.core.JODBSessionContainer.configureIndex()

        testFile.delete();
        if(testFile.exists()){
            throw new Exception();
        }
        JODBSessionContainer sessionContainer = getContainerForFile(testFile);
        sessionContainer.configureIndex(ObjectA.class, "_val2", true);
       
        Random random = new Random(376538);
       
        int maxObjects = 10000;
       
View Full Code Here

Examples of com.mobixess.jodb.core.JODBSessionContainer.configureIndex()

        File testFileDir = new File(TEST_DATA_DIR);
        testFileDir.mkdirs();
        File testFile = new File(testFileDir,SimpleAddTest.class.getSimpleName()+(_testCounter++)+".jdb");
        testFile.delete();
        JODBSessionContainer sessionContainer = getContainerForFile(testFile);
        sessionContainer.configureIndex(ObjectA.class, "_val1", true);
        sessionContainer.configureIndex(ObjectA.class, "_val2", true);
        ObjectA objectA1 = new ObjectA((byte)0,(short)2,null);
        ObjectA objectA2 = new ObjectA((byte)0,(short)1,null);
        ObjectA objectA3 = new ObjectA((byte)0,(short)3,null);
       
View Full Code Here

Examples of com.mobixess.jodb.core.JODBSessionContainer.configureIndex()

        testFileDir.mkdirs();
        File testFile = new File(testFileDir,SimpleAddTest.class.getSimpleName()+(_testCounter++)+".jdb");
        testFile.delete();
        JODBSessionContainer sessionContainer = getContainerForFile(testFile);
        sessionContainer.configureIndex(ObjectA.class, "_val1", true);
        sessionContainer.configureIndex(ObjectA.class, "_val2", true);
        ObjectA objectA1 = new ObjectA((byte)0,(short)2,null);
        ObjectA objectA2 = new ObjectA((byte)0,(short)1,null);
        ObjectA objectA3 = new ObjectA((byte)0,(short)3,null);
       
        sessionContainer.set(objectA1);
View Full Code Here

Examples of com.mobixess.jodb.core.JODBSessionContainer.configureIndex()

       
        if(list.size() != negatives){
            throw new RuntimeException();
        }
       
        sessionContainer.configureIndex(ObjectA.class, "_val2", true);
       
        if(reopen){
            sessionContainer.close();
            sessionContainer = getContainerForFile(testFile);
        }
View Full Code Here

Examples of com.mobixess.jodb.core.JODBSessionContainer.configureIndex()

        testFileDir.mkdirs();
        File testFile = new File(testFileDir,NQTests.class.getSimpleName()+(_testCounter++)+".jdb");
        testFile.delete();
        JODBSessionContainer sessionContainer = getContainerForFile(testFile);
       
        sessionContainer.configureIndex(ObjectB.class, "_val4", true);
       
        Random random = new Random(237468);
        for (int i = 0; i < 1000; ++i) {
            ObjectB objectB = new ObjectB();
            objectB._val4 =  random.nextInt(1000);
View Full Code Here

Examples of com.mobixess.jodb.core.JODBSessionContainer.configureIndex()

        testFileDir.mkdirs();
        File testFile = new File(testFileDir,NQTests.class.getSimpleName()+(_testCounter++)+".jdb");
        testFile.delete();
        JODBSessionContainer sessionContainer = getContainerForFile(testFile);
       
        sessionContainer.configureIndex(ObjectB.class, "_val4", true);
       
        Random random = new Random(237468);
        for (int i = 0; i < 1000; ++i) {
            ObjectB objectB = new ObjectB();
            objectB._val4 =  random.nextInt(1000);
View Full Code Here

Examples of com.mobixess.jodb.core.JODBSessionContainer.configureIndex()

        objectDataContainer.commit();
    }
   
    private void enableIndex(ObjectContainer objectContainer) throws Exception{
        JODBSessionContainer sessionContainer = (JODBSessionContainer) objectContainer;
        sessionContainer.configureIndex(BenchmarkObject.class, "_val1", true);
    }
   
    private static class BenchmarkResults{
        boolean _indexEnabled;
        boolean _sorted;
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.