Package org.jrdf.collection

Examples of org.jrdf.collection.IteratorTrackingCollectionFactory


        MoleculeStructureIndex<Long>[] structureIndexes = createMoleculeStructureIndexes(graphNumber);
        ReadableIndex<Long> readIndex = new ReadableIndexImpl(structureIndexes);
        WritableIndex<Long> writeIndex = new WritableIndexImpl(structureIndexes);
        LongIndex[] longIndexes = new LongIndex[]{new LongIndexAdapter(structureIndexes[0]),
            new LongIndexAdapter(structureIndexes[1]), new LongIndexAdapter(structureIndexes[2])};
        IteratorTrackingCollectionFactory collectionFactory = base.createCollectionFactory(graphNumber);
        Graph graph = new OrderedGraphFactoryImpl(longIndexes, nodePool, collectionFactory).getGraph();
        final long curMaxMoleculeId = readIndex.getMaxMoleculeId();
        Localizer localizer = new LocalizerImpl(nodePool, STRING_MAPPER);
        MoleculeLocalizer moleculeLocalizer = new MoleculeLocalizerImpl(localizer, curMaxMoleculeId);
        return new MoleculeGraphImpl(writeIndex, readIndex, moleculeLocalizer, graph, nodePool);
View Full Code Here


    }

    public Graph getNewGraph() {
        LongIndex[] indexes = createIndexes();
        NodePoolFactory nodePoolFactory = new MemNodePoolFactory();
        IteratorTrackingCollectionFactory collectionFactory = new MemCollectionFactory();
        return new GraphFactoryImpl(indexes, nodePoolFactory, collectionFactory).getGraph();
    }
View Full Code Here

    }

    private Graph getGraph(long graphNumber) {
        LongIndex[] indexes = createIndexes(graphNumber);
        final NodePool nodePool = base.createNodePool(graphNumber);
        IteratorTrackingCollectionFactory collectionFactory = base.createCollectionFactory(graphNumber);
        return new OrderedGraphFactoryImpl(indexes, nodePool, collectionFactory).getGraph();
    }
View Full Code Here

        NodePool nodePool = nodePoolFactory.createNewNodePool();
        Localizer localizer = new LocalizerImpl(nodePool, STRING_MAPPER);
        MoleculeLocalizer moleculeLocalizer = new MoleculeLocalizerImpl(localizer);
        LongIndex[] longIndexes = new LongIndex[]{new LongIndexAdapter(structureIndexes[0]),
            new LongIndexAdapter(structureIndexes[1]), new LongIndexAdapter(structureIndexes[2])};
        IteratorTrackingCollectionFactory collectionFactory = new MemCollectionFactory();
        Graph graph = new OrderedGraphFactoryImpl(longIndexes, nodePool, collectionFactory).getGraph();
        return new MoleculeGraphImpl(writeIndex, readIndex, moleculeLocalizer, graph, nodePool);
    }
View Full Code Here

TOP

Related Classes of org.jrdf.collection.IteratorTrackingCollectionFactory

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.