public class OrientInstanceSink extends Object implements InstanceSink, Closeable
LocalOrientDB
Constructor and Description |
---|
OrientInstanceSink(LocalOrientDB database,
boolean lockNow)
Create an instance sink based on a
LocalOrientDB |
Modifier and Type | Method and Description |
---|---|
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.
|
public OrientInstanceSink(LocalOrientDB database, boolean lockNow)
LocalOrientDB
database
- the sink databaselockNow
- if the database should be locked nowpublic void addInstance(Instance instance)
InstanceSink
addInstance
in interface InstanceSink
instance
- the instance to addInstanceSink.addInstance(Instance)
protected void processInstance(Instance instance)
instance
- the instancepublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Closeable.close()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a