Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.instance.orient.storage
Class OrientInstanceSink

java.lang.Object
  extended by eu.esdihumboldt.hale.common.instance.orient.storage.OrientInstanceSink
All Implemented Interfaces:
InstanceSink, Closeable
Direct Known Subclasses:
HaleOrientInstanceSink

public class OrientInstanceSink
extends Object
implements InstanceSink, Closeable

Instance sink based on a LocalOrientDB

Author:
Simon Templer

Constructor Summary
OrientInstanceSink(LocalOrientDB database, boolean lockNow)
          Create an instance sink based on a LocalOrientDB
 
Method Summary
 void addInstance(Instance instance)
          Adds an instance to the sink
 void close()
           
protected  void processInstance(Instance instance)
          Process an instance before it is converted and saved.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrientInstanceSink

public OrientInstanceSink(LocalOrientDB database,
                          boolean lockNow)
Create an instance sink based on a LocalOrientDB

Parameters:
database - the sink database
lockNow - if the database should be locked now
Method Detail

addInstance

public void addInstance(Instance instance)
Description copied from interface: InstanceSink
Adds an instance to the sink

Specified by:
addInstance in interface InstanceSink
Parameters:
instance - the instance to add
See Also:
InstanceSink.addInstance(Instance)

processInstance

protected void processInstance(Instance instance)
Process an instance before it is converted and saved. The default implementation does nothing and may be overridden.

Parameters:
instance - the instance

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Throws:
IOException
See Also:
Closeable.close()

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d