Search in sources :

Example 1 with FileSystemClosingBatchInserter

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

Example 2 with FileSystemClosingBatchInserter

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

Example 3 with FileSystemClosingBatchInserter

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

Aggregations

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