Package com.graphaware.tx.event.batch.api

Examples of com.graphaware.tx.event.batch.api.TransactionSimulatingBatchInserterImpl


        assertFalse(batchInserter.getAllNodes().iterator().hasNext());
    }

    @Test
    public void shouldReturnAllNodesFromTheDatabase() {
        batchInserter = new TransactionSimulatingBatchInserterImpl(BatchInserters.inserter(temporaryFolder.getRoot().getAbsolutePath()));

        batchInserter.createNode(Collections.<String, Object>singletonMap("name", "One"));
        batchInserter.createNode(Collections.<String, Object>singletonMap("name", "Two"));

        Iterable<Long> allNodes = batchInserter.getAllNodes();
View Full Code Here


            }
        });

        database.shutdown();

        batchInserter = new TransactionSimulatingBatchInserterImpl(BatchInserters.inserter(temporaryFolder.getRoot().getAbsolutePath()));

        Iterable<Long> allNodes = batchInserter.getAllNodes();
        assertEquals(2, count(allNodes));

        Iterator<Long> iterator = batchInserter.getAllNodes().iterator();
View Full Code Here

            return result;
        }
    }

    private void createBatchInserter() {
        batchInserter = new TransactionSimulatingBatchInserterImpl(BatchInserters.inserter(temporaryFolder.getRoot().getAbsolutePath()));

        populateDatabase();

        batchInserter.shutdown();
        batchInserter = new TransactionSimulatingBatchInserterImpl(BatchInserters.inserter(temporaryFolder.getRoot().getAbsolutePath()));
    }
View Full Code Here

TOP

Related Classes of com.graphaware.tx.event.batch.api.TransactionSimulatingBatchInserterImpl

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.