Package de.julielab.concepts.db.core
Class ServerPluginConceptInserter
- java.lang.Object
-
- de.julielab.concepts.db.core.ServerPluginConceptInserter
-
- All Implemented Interfaces:
ConceptInserter,DatabaseConnected
public class ServerPluginConceptInserter extends java.lang.Object implements ConceptInserter
-
-
Field Summary
Fields Modifier and Type Field Description static intCONCEPT_IMPORT_BATCH_SIZE
-
Constructor Summary
Constructors Constructor Description ServerPluginConceptInserter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinsertConcepts(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> importConfig, de.julielab.neo4j.plugins.datarepresentation.ImportConcepts concepts)voidsetConnection(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> connectionConfiguration)Requires the implementing service provider to check if the given connection is supported and, if so, to use it for later method calls.
-
-
-
Field Detail
-
CONCEPT_IMPORT_BATCH_SIZE
public static final int CONCEPT_IMPORT_BATCH_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
insertConcepts
public void insertConcepts(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> importConfig, de.julielab.neo4j.plugins.datarepresentation.ImportConcepts concepts) throws ConceptInsertionException- Specified by:
insertConceptsin interfaceConceptInserter- Throws:
ConceptInsertionException
-
setConnection
public void setConnection(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> connectionConfiguration) throws ConceptDatabaseConnectionExceptionDescription copied from interface:DatabaseConnectedRequires the implementing service provider to check if the given connection is supported and, if so, to use it for later method calls. Please not that this kind of state requires caution in case of multithreading.
If the provider cannot serve to given connection configuration, it is required to throw a
ConceptDatabaseConnectionException. This serves as the indication that the provider is not applicable for the required connection type. Typically, it will then just be omitted by its service.- Specified by:
setConnectionin interfaceDatabaseConnected- Parameters:
connectionConfiguration- The connection details, e.g. HTTP, BOLT or file-based connection.- Throws:
ConceptDatabaseConnectionException- If the provider does not support the passed connection configuration.
-
-