Package org.neo4j.batchimport.utils

Examples of org.neo4j.batchimport.utils.Config


    public static void main(String[] args) throws IOException {
        System.err.println("Usage: Importer data/dir nodes.csv relationships.csv [node_index node-index-name fulltext|exact nodes_index.csv rel_index rel-index-name fulltext|exact rels_index.csv ....]");
        System.err.println("Using: Importer "+join(args," "));
        System.err.println();

        final Config config = Config.convertArgumentsToConfig(args);

        File graphDb = new File(config.getGraphDbDirectory());
        if (graphDb.exists() && !config.keepDatabase()) {
            FileUtils.deleteRecursively(graphDb);
        }

        Importer importer = new Importer(graphDb, config);
        importer.doImport();
View Full Code Here


        index = mock(BatchInserterIndex.class);
        when(provider.nodeIndex(eq("index-a"),anyMap())).thenReturn(index);

        final Map<String, String> configData = Config.config("batch.properties");
        new IndexInfo("node_index", "index-a", "exact", null).addToConfig(configData);
        importer = new Importer(File.createTempFile("test", "db"), new Config(configData)) {
            @Override
            protected BatchInserter createBatchInserter(File graphDb, Config config) {
                return inserter;
            }
View Full Code Here

TOP

Related Classes of org.neo4j.batchimport.utils.Config

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.