Package org.jrdf.graph.local.index.nodepool.mem

Examples of org.jrdf.graph.local.index.nodepool.mem.MemNodePoolFactory


    public void refresh() {
    }

    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


    public MoleculeGraph getNewGraph() {
        MoleculeStructureIndex<Long>[] structureIndexes = createMoleculeStructureIndexes();
        ReadableIndex<Long> readIndex = new ReadableIndexImpl(structureIndexes);
        WritableIndex<Long> writeIndex = new WritableIndexImpl(structureIndexes);
        NodePoolFactory nodePoolFactory = new MemNodePoolFactory();
        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();
View Full Code Here

    public void refresh() {
    }

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

TOP

Related Classes of org.jrdf.graph.local.index.nodepool.mem.MemNodePoolFactory

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.