use of org.neo4j.batchinsert.internal.FileSystemClosingBatchInserter in project neo4j by neo4j.
the class BatchInserters method inserter.
public static BatchInserter inserter(DatabaseLayout databaseLayout, Config config, Iterable<ExtensionFactory<?>> extensions) throws IOException {
DefaultFileSystemAbstraction fileSystem = createFileSystem();
BatchInserterImpl inserter = new BatchInserterImpl(databaseLayout, fileSystem, config, extensions, EMPTY);
return new FileSystemClosingBatchInserter(inserter, fileSystem);
}
use of org.neo4j.batchinsert.internal.FileSystemClosingBatchInserter in project neo4j by neo4j.
the class BatchInserters method inserter.
public static BatchInserter inserter(DatabaseLayout databaseLayout, Config config) throws IOException {
DefaultFileSystemAbstraction fileSystem = createFileSystem();
BatchInserter inserter = inserter(databaseLayout, fileSystem, config, loadExtension());
return new FileSystemClosingBatchInserter(inserter, fileSystem);
}
use of org.neo4j.batchinsert.internal.FileSystemClosingBatchInserter in project neo4j by neo4j.
the class BatchInserters method inserter.
/**
* Get a {@link BatchInserter} given a store directory.
*
* @param databaseLayout directory where particular neo4j database is located
* @return a new {@link BatchInserter}
* @throws IOException if there is an IO error
*/
public static BatchInserter inserter(DatabaseLayout databaseLayout) throws IOException {
DefaultFileSystemAbstraction fileSystem = createFileSystem();
BatchInserter batchInserter = inserter(databaseLayout, fileSystem, Config.defaults());
return new FileSystemClosingBatchInserter(batchInserter, fileSystem);
}
Aggregations