de.uni.leipzig.IR15.Importer
Class Importer

java.lang.Object
  extended by de.uni.leipzig.IR15.Importer.Importer
Direct Known Subclasses:
DEXImporter, Neo4JImporter, OrientDBImporter

public abstract class Importer
extends java.lang.Object

Abstract base class for all database importer.

Author:
robbl

Nested Class Summary
static class Importer.RelTypes
           
 
Constructor Summary
Importer()
           
 
Method Summary
abstract  java.lang.String getName()
          Returns the name of the importer
abstract  void importData()
          This method imports the data
 void reset()
          Deletes all files associated with the repective graph database
abstract  void setUp()
          This method is called before the import is started
 void setUp(java.lang.String graphDBName)
          Initializes the configuration instances
 void tearDown()
          Cleanup mysql connection after running importer.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Importer

public Importer()
Method Detail

reset

public void reset()
Deletes all files associated with the repective graph database


setUp

public void setUp(java.lang.String graphDBName)
Initializes the configuration instances

Parameters:
graphDBName - the name of the graph database which is used (e.g. neo4j, orientdb, dex)

setUp

public abstract void setUp()
This method is called before the import is started


importData

public abstract void importData()
This method imports the data


getName

public abstract java.lang.String getName()
Returns the name of the importer

Returns:
importer's name

tearDown

public void tearDown()
Cleanup mysql connection after running importer.