public class ACFactoryBatch extends Object
| Constructor and Description |
|---|
ACFactoryBatch() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
addListToDictTree(ACDataBase dataBase,
ACDictionary dict,
List<ACEntry> listEntries)
Adds a list of entries to a DictTree, which is not prepared for searching
|
static boolean |
createDictTree(org.neo4j.unsafe.batchinsert.BatchInserter batchInserter,
ACDictionary dict)
Creates a new root of a DictTree, where entries could be add.
|
static boolean |
prepareDictTreeForSearch(ACDataBase dataBase,
ACDictionary dict)
Prepares the DictTree for searching.
|
public static boolean createDictTree(org.neo4j.unsafe.batchinsert.BatchInserter batchInserter,
ACDictionary dict)
batchInserter - - BatchInserter of the Databasename - - Name of the Dictionarytokenizer - - Is the DictTree a version with tokens instead of letterstrue if a new root was created, false if a root already existpublic static boolean addListToDictTree(ACDataBase dataBase, ACDictionary dict, List<ACEntry> listEntries) throws org.neo4j.shell.util.json.JSONException, IOException
batchInserter - - BatchInsertername - - name of the DictTreedictEntries - - The dictionary entries as a JSON map of the form
[{'entry':'entry1','attributes':{'attribute1':'attValue1','attribute2':'attValue2'}}] The
Entry is mapped with the constant ENTRY and the Attributes is a Map, which has the key ATRRIBUTEStrue if all entries could be added, false if the tree is already prepared for searchingorg.neo4j.shell.util.json.JSONExceptionIOExceptionpublic static boolean prepareDictTreeForSearch(ACDataBase dataBase, ACDictionary dict) throws IOException, org.neo4j.shell.util.json.JSONException
batchInserter - - BatchInsertername - - Name of the dictionarytrue if the tree is prepared, false if tree does not existIOExceptionorg.neo4j.shell.util.json.JSONExceptionCopyright © 2017 JULIE Lab Jena, Germany. All rights reserved.