Package org.jrdf.util.bdb

Examples of org.jrdf.util.bdb.BdbEnvironmentHandlerImpl


        newGraph.clear();
        return newGraph;
    }

    protected BlankNodeRegistry getBlankNodeRegistry() {
        final BdbEnvironmentHandler newHandler = new BdbEnvironmentHandlerImpl(dirHandler);
        return new BdbBlankNodeRegistryImpl(new BdbMapFactory(newHandler, "foobarbaz"));
    }
View Full Code Here


        final BdbEnvironmentHandler newHandler = new BdbEnvironmentHandlerImpl(dirHandler);
        return new BdbBlankNodeRegistryImpl(new BdbMapFactory(newHandler, "foobarbaz"));
    }

    protected MapFactory getMapFactory() {
        return new BdbMapFactory(new BdbEnvironmentHandlerImpl(new TempDirectoryHandler()), "database");
    }
View Full Code Here

    private BTreeFactory btreeFactory = new BTreeFactoryImpl();
    private BasePersistentJRDFFactory base;

    private PersistentGlobalJRDFFactoryImpl(DirectoryHandler newHandler) {
        this.handler = newHandler;
        this.base = new BasePersistentJRDFFactoryImpl(newHandler, new BdbEnvironmentHandlerImpl(handler));
        refresh();
    }
View Full Code Here

    private BTreeFactory btreeFactory = new BTreeFactoryImpl();
    private BasePersistentJRDFFactory base;

    private PersistentJRDFFactoryImpl(DirectoryHandler newHandler) {
        this.handler = newHandler;
        this.base = new BasePersistentJRDFFactoryImpl(newHandler, new BdbEnvironmentHandlerImpl(handler));
        refresh();
    }
View Full Code Here

    public MoleculeGraph getNewGraph() {
        graphNumber++;
        MapFactory factory = new BdbMapFactory(BDB_HANDLER, "database" + graphNumber);
        NodePoolFactory nodePoolFactory = new BdbNodePoolFactory(
                new BdbEnvironmentHandlerImpl(new TempDirectoryHandler()), graphNumber);
        MoleculeStructureIndex<Long>[] structureIndexes = createMoleculeStructureIndexes();
        ReadableIndex<Long> readIndex = new ReadableIndexImpl(structureIndexes);
        WritableIndex<Long> writeIndex = new WritableIndexImpl(structureIndexes);
        NodePool nodePool = nodePoolFactory.createNewNodePool();
        Localizer localizer = new LocalizerImpl(nodePool, STRING_MAPPER);
View Full Code Here

    }

    public Graph getNewGraph() {
        graphNumber++;
        NodePoolFactory nodePoolFactory = new BdbNodePoolFactory(BDB_HANDLER, graphNumber);
        MapFactory factory = new BdbMapFactory(new BdbEnvironmentHandlerImpl(new TempDirectoryHandler()),
            "database" + graphNumber);
        LongIndex[] indexes = createIndexes(factory);
        collectionFactory = new BdbCollectionFactory(BDB_HANDLER, "collection" + graphNumber);
        openIndexes.addAll(asList(indexes));
        openMapFactories.add(factory);
View Full Code Here

TOP

Related Classes of org.jrdf.util.bdb.BdbEnvironmentHandlerImpl

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.