Package org.jrdf.graph.global.molecule.mem

Examples of org.jrdf.graph.global.molecule.mem.MoleculeHeadTripleComparatorImpl


    private void testPerformance() throws Exception {
        for (int i = 0; i < NUMBER_OF_MOLECULES; i++) {
            addChain("urn:foo");
        }
        System.out.println("Graph size = " + graph.getNumberOfTriples());
        MoleculeHeadTripleComparatorImpl tripleComparator = new MoleculeHeadTripleComparatorImpl(
            new GroundedTripleComparatorFactoryImpl().newComparator());
        Set<Molecule> results = new TreeSet<Molecule>(tripleComparator);
        long startTime = System.currentTimeMillis();
        Set<Molecule> moleculeSet = decomposer.decompose(graph);
        Molecule[] molecules = moleculeSet.toArray(new Molecule[moleculeSet.size()]);
View Full Code Here


        this.writableIndex = newWriteIndex;
        this.readableIndex = newReadIndex;
        this.localizer = newLocalizer;
        this.graph = newGraph;
        this.comparator = new TripleComparatorFactoryImpl().newComparator();
        this.moleculeComparator = new MoleculeHeadTripleComparatorImpl(comparator);
        this.handler = new MoleculeGraphHandlerImpl(nodePool, readableIndex, moleculeComparator);
    }
View Full Code Here

TOP

Related Classes of org.jrdf.graph.global.molecule.mem.MoleculeHeadTripleComparatorImpl

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.