Package de.julielab.concepts.db.core
Class CypherBoltOperator
- java.lang.Object
-
- de.julielab.concepts.db.core.CypherBoltOperator
-
- All Implemented Interfaces:
DatabaseConnected,DatabaseOperator,de.julielab.jssf.commons.spi.ExtensionPoint,de.julielab.jssf.commons.spi.ParameterExposing
public class CypherBoltOperator extends Object implements DatabaseOperator
Sends a given Cypher query and writes the retrieved results into the given output file. One record per line, fields are tab-separated, all field values are converted to strings.
-
-
Constructor Summary
Constructors Constructor Description CypherBoltOperator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexposeParameters(String basePath, org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> template)StringgetName()voidoperate(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> operationConfiguration)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.
-
-
-
Method Detail
-
operate
public void operate(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> operationConfiguration) throws DatabaseOperationException- Specified by:
operatein interfaceDatabaseOperator- Throws:
DatabaseOperationException
-
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.
-
getName
public String getName()
- Specified by:
getNamein interfacede.julielab.jssf.commons.spi.ExtensionPoint
-
exposeParameters
public void exposeParameters(String basePath, org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> template)
- Specified by:
exposeParametersin interfacede.julielab.jssf.commons.spi.ParameterExposing
-
-