Package net.fortytwo.twitlogic.persistence.sail

Examples of net.fortytwo.twitlogic.persistence.sail.AGRepositorySailFactory


    // Over the LAN:
    //     1 trans/upload -- 60 t/s
    //     100 trans/upload -- 160 t/s
    private void testRdfTransactionPersister(final int commitsPerUpload) throws Exception {
        AGRepository repo = new AGRepositorySailFactory(TwitLogic.getConfiguration(), false).makeAGRepository();
        repo.initialize();
        try {
            AGRepositoryConnection rc = repo.getConnection();
            try {
                //rc.begin();
View Full Code Here


    }

    // Over the LAN: 6 t/s
    // Locally: 7 t/s
    private void testAllegroGraphPersister() throws Exception {
        SailFactory f = new AGRepositorySailFactory(TwitLogic.getConfiguration(), false);
        Sail sail = f.makeSail();
        sail.initialize();

        try {
            TweetStore store = new TweetStore(sail);
            store.initialize();
View Full Code Here

        if (sailType.equals(MemoryStore.class.getName())) {
            factory = new MemoryStoreFactory(props);
        } else if (sailType.equals(NativeStore.class.getName())) {
            factory = new NativeStoreFactory(props);
        } else if (sailType.equals("com.knowledgereefsystems.agsail.AllegroSail")) {
            factory = new AGRepositorySailFactory(props, false);
        } else if (sailType.equals("com.tinkerpop.blueprints.pgm.oupls.sail.GraphSail")) {
            factory = new Neo4jSailFactory(props);
        } else {
            throw new TweetStoreException("unhandled Sail type: " + sailType);
        }
View Full Code Here

TOP

Related Classes of net.fortytwo.twitlogic.persistence.sail.AGRepositorySailFactory

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.