public class Neo4jImportTool extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
FILE_KEY |
protected static String |
HEADERS_KEY |
| Constructor and Description |
|---|
Neo4jImportTool(String dbPath,
Map<String,String> neo4jConfiguration,
Map<String,String> importConfiguration,
List<Map<String,String>> nodes,
List<Map<String,String>> relationships)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
createHeaderFile(String header)
Create the specified header file.
|
protected String |
createNeo4jConfigFile()
Create Neo4j configuration file.
|
void |
execute()
Execute the import.
|
protected static final String HEADERS_KEY
protected static final String FILE_KEY
public Neo4jImportTool(String dbPath, Map<String,String> neo4jConfiguration, Map<String,String> importConfiguration, List<Map<String,String>> nodes, List<Map<String,String>> relationships)
dbPath - neo4jConfiguration - importConfiguration - nodes - relationships - public void execute()
throws IOException
IOExceptionprotected String createHeaderFile(String header) throws IOException
header - Content of the fileIOExceptionprotected String createNeo4jConfigFile() throws IOException
IOExceptionCopyright © 2017. All rights reserved.