Class CypherBoltExporter

  • All Implemented Interfaces:
    DatabaseConnected, DataExporter, de.julielab.jssf.commons.spi.ExtensionPoint, de.julielab.jssf.commons.spi.ParameterExposing

    public class CypherBoltExporter
    extends DataExporterImpl
    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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void exportData​(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> exportConfig)
      Export data from the database to an external location.
      void exposeParameters​(java.lang.String basePath, org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> template)  
      java.lang.String getName()  
      void setConnection​(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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface de.julielab.jssf.commons.spi.ExtensionPoint

        hasName
    • Constructor Detail

      • CypherBoltExporter

        public CypherBoltExporter()
    • Method Detail

      • setConnection

        public void setConnection​(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> connectionConfiguration)
                           throws ConceptDatabaseConnectionException
        Description copied from interface: DatabaseConnected

        Requires 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.

        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 java.lang.String getName()
      • exposeParameters

        public void exposeParameters​(java.lang.String basePath,
                                     org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> template)