Examples of BdbMapFactory


Examples of org.jrdf.collection.BdbMapFactory

        return newGraph;
    }

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

Examples of org.jrdf.collection.BdbMapFactory

        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

Examples of org.jrdf.collection.BdbMapFactory

        pool.clear();
        return pool;
    }

    public NodePool openExistingNodePool() {
        nodePoolMapFactory = new BdbMapFactory(handler, DB_NAME_NODEPOOL + graphNumber);
        stringPoolMapFactory = new BdbMapFactory(handler, DB_NAME_STRINGPOOL + graphNumber);
        StringNodeMapper mapper = new StringNodeMapperFactoryImpl().createMapper();
        final Map<Long, String> blankNodePool = nodePoolMapFactory.openExistingMap(Long.class, String.class, "bnp");
        final Map<Long, String> uriNodePool = nodePoolMapFactory.openExistingMap(Long.class, String.class, "npm");
        final Map<Long, String> literalNodePool = nodePoolMapFactory.openExistingMap(Long.class, String.class, "lnp");
        final Map<String, Long> stringPool = stringPoolMapFactory.openExistingMap(String.class, Long.class, "sp");
View Full Code Here

Examples of org.jrdf.collection.BdbMapFactory

    public void refresh() {
    }

    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);
View Full Code Here

Examples of org.jrdf.collection.BdbMapFactory

    }

    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

Examples of org.jrdf.collection.BdbMapFactory

    public void refresh() {
    }

    public MoleculeGraph getNewGraph() {
        graphNumber++;
        MapFactory factory = new BdbMapFactory(BDB_HANDLER, "database" + graphNumber);
        NodePoolFactory nodePoolFactory = new BdbNodePoolFactory(BDB_HANDLER, graphNumber);
        MoleculeStructureIndex<Long>[] structureIndexes = createMoleculeStructureIndexes();
        ReadableIndex<Long> readIndex = new ReadableIndexImpl(structureIndexes);
        WritableIndex<Long> writeIndex = new WritableIndexImpl(structureIndexes);
        NodePool nodePool = nodePoolFactory.createNewNodePool();
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.