Search in sources :

Example 1 with FileSystemClosingBatchInserter

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);
}
Also used : FileSystemClosingBatchInserter(org.neo4j.unsafe.batchinsert.internal.FileSystemClosingBatchInserter) DefaultFileSystemAbstraction(org.neo4j.io.fs.DefaultFileSystemAbstraction) FileSystemClosingBatchInserter(org.neo4j.unsafe.batchinsert.internal.FileSystemClosingBatchInserter)

Example 2 with FileSystemClosingBatchInserter

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);
}
Also used : FileSystemClosingBatchInserter(org.neo4j.unsafe.batchinsert.internal.FileSystemClosingBatchInserter) DefaultFileSystemAbstraction(org.neo4j.io.fs.DefaultFileSystemAbstraction) FileSystemClosingBatchInserter(org.neo4j.unsafe.batchinsert.internal.FileSystemClosingBatchInserter)

Example 3 with FileSystemClosingBatchInserter

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);
}
Also used : BatchInserterImpl(org.neo4j.unsafe.batchinsert.internal.BatchInserterImpl) DefaultFileSystemAbstraction(org.neo4j.io.fs.DefaultFileSystemAbstraction) FileSystemClosingBatchInserter(org.neo4j.unsafe.batchinsert.internal.FileSystemClosingBatchInserter)

Aggregations

DefaultFileSystemAbstraction (org.neo4j.io.fs.DefaultFileSystemAbstraction)3 FileSystemClosingBatchInserter (org.neo4j.unsafe.batchinsert.internal.FileSystemClosingBatchInserter)3 BatchInserterImpl (org.neo4j.unsafe.batchinsert.internal.BatchInserterImpl)1