public class ACDataBase extends Object
| Constructor and Description |
|---|
ACDataBase(String path)
Initial a
ACDataBase with the path to the
neo4j Database. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addDict(ACDictionary dict)
Adds a dictionary of the given parameters to
the GraphDatabase.
|
void |
addMap(String name,
ACGlobalMap map)
Adds a
ACGlobalMap for a dictionary |
boolean |
deleteDict(String name)
Deletes a dictionary in the GraphDatabase.
|
void |
deleteMap(String name)
Delets a
ACGlobalMap for a dictionary |
ACDictionary |
getDict(String name)
Gets the a
ACDictionary of a dictionary in
the GraphDatabase. |
ACGlobalMap |
getMap(String name)
Gets a
ACGlobalMap for the Dictionary
and creates one if no exist so far |
org.neo4j.unsafe.batchinsert.BatchInserter |
startBatchInserter()
Starts a
BatchInserter for the Database and load all
ACDictionary in the given Database. |
org.neo4j.graphdb.GraphDatabaseService |
startGraphDatabase()
Starts a new
GraphDatabaseService and loads all dictionaries
in an overview. |
boolean |
stopBatchInserter()
Stops the current
BatchInserter and resets the overview of
all dictionaries. |
boolean |
stopGraphDatabase()
Stops the current
GraphDatabaseService and
resets the overview of all dictionaries. |
public ACDataBase(String path)
ACDataBase with the path to the
neo4j Database.path - - Path to the neo4j GraphDatabasepublic org.neo4j.unsafe.batchinsert.BatchInserter startBatchInserter()
BatchInserter for the Database and load all
ACDictionary in the given Database. If the BatchInserter is
always running it returns the current BatchInserter.public boolean stopBatchInserter()
BatchInserter and resets the overview of
all dictionaries.public org.neo4j.graphdb.GraphDatabaseService startGraphDatabase()
GraphDatabaseService and loads all dictionaries
in an overview.public boolean stopGraphDatabase()
GraphDatabaseService and
resets the overview of all dictionaries.public boolean addDict(ACDictionary dict) throws org.neo4j.shell.util.json.JSONException
dict - - Dictionary to addorg.neo4j.shell.util.json.JSONExceptionpublic ACDictionary getDict(String name)
ACDictionary of a dictionary in
the GraphDatabase.name - - Name of the dictionaryACDictionarypublic boolean deleteDict(String name) throws IOException
GraphDatabaseService is already running.name - - Name of the DictionaryIOExceptionpublic ACGlobalMap getMap(String name)
ACGlobalMap for the Dictionary
and creates one if no exist so farname - public void addMap(String name, ACGlobalMap map)
ACGlobalMap for a dictionaryname - map - public void deleteMap(String name)
ACGlobalMap for a dictionaryname - Copyright © 2017 JULIE Lab Jena, Germany. All rights reserved.