Package org.jrdf.collection

Examples of org.jrdf.collection.MapFactory


    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


    }

    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

    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

Related Classes of org.jrdf.collection.MapFactory

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.