use of org.neo4j.unsafe.batchinsert.internal.FileSystemClosingBatchInserter in project neo4j by neo4j.
the class BatchInserters method inserter.
/**
* Get a {@link BatchInserter} given a store directory.
*
* @param storeDir the store directory
* @return a new {@link BatchInserter}
* @throws IOException if there is an IO error
*/
public static BatchInserter inserter(File storeDir) throws IOException {
DefaultFileSystemAbstraction fileSystem = createFileSystem();
BatchInserter batchInserter = inserter(storeDir, fileSystem, stringMap());
return new FileSystemClosingBatchInserter(batchInserter, (IndexConfigStoreProvider) batchInserter, fileSystem);
}
use of org.neo4j.unsafe.batchinsert.internal.FileSystemClosingBatchInserter in project neo4j by neo4j.
the class BatchInserters method inserter.
public static BatchInserter inserter(File storeDir, Map<String, String> config) throws IOException {
DefaultFileSystemAbstraction fileSystem = createFileSystem();
BatchInserter inserter = inserter(storeDir, fileSystem, config, loadKernelExtension());
return new FileSystemClosingBatchInserter(inserter, (IndexConfigStoreProvider) inserter, fileSystem);
}
use of org.neo4j.unsafe.batchinsert.internal.FileSystemClosingBatchInserter in project neo4j by neo4j.
the class BatchInserters method inserter.
public static BatchInserter inserter(File storeDir, Map<String, String> config, Iterable<KernelExtensionFactory<?>> kernelExtensions) throws IOException {
DefaultFileSystemAbstraction fileSystem = createFileSystem();
BatchInserterImpl inserter = new BatchInserterImpl(storeDir, fileSystem, config, kernelExtensions);
return new FileSystemClosingBatchInserter(inserter, inserter, fileSystem);
}
Aggregations